I am trying to make a game for my friend as a suprise and I wanted him to voice some lines for me without him knowing. I got the voicelines but ive tried numerous times to make it a voice line but it just doesnt work. How do I make it so when I get close to the GameObject (“Cube5”), a text appears saying “Press E to talk” and when I press E the voice line plays.
I tried using ChatGPT and thought maybe that could work, but no. I mean it worked but when I pressed E anywhere it played the sound, and I wanted it to play when im looking at the GameObject
Intestity Royale is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.