I am a big noob in scripting, but i am working on a game so i can learn it.
I am making a scary game, i placed a cube and made it invisible and that you could walk through it.
I want that if the firstpersoncontroller is walking through it, a animation has to start of a ghost that is flying towards you.
Is there a simple script that let’s you do that. Let’s say that the animation is called: Ghost1 and the cube is called: trigger1
I searched for like a hour but i only found scripts that were not compleet and because i am a noob in scripting i couldn’t get it to work.
Also, can i add a sound to the animation or do i need another script for that?