Make sure that your First Person Controller is tagged as the player! select your first person controller -> inspector -> tag and select "Player". If you dont see the tag "Player" make a new tag called "Player".
@frankieplayzz83828 ай бұрын
Thanks for tutorial very easy to follow and works perfectly.
@AlonePirate02 Жыл бұрын
Amazing tutorial thank you.
@grim6780 Жыл бұрын
My jump scare won't trigger. Any idea what's wrong. I followed every.
@ThatOneDev476 Жыл бұрын
I'm new to unity and I don't know how I'm gonnaa follow the script part please put it in description
@doziaress7 ай бұрын
my jumpscare isn't stoping it is just a loop pls help me
@grim6780 Жыл бұрын
I figured it out.
@penguinblox1856 Жыл бұрын
whats was the problem/fix?
@grim6780 Жыл бұрын
@@penguinblox1856I will look at it later and get back to you. I don't remember it off the top of my head.
@deletriz5 күн бұрын
dude say the fix its been a year.....
@Glarer8 ай бұрын
i made it and the audio isnt playing help
@DanRobart Жыл бұрын
Thank you ;)
@penguinblox1856 Жыл бұрын
It says no definition for "gameobject" (19,18), any thoughts or ideas on how to fix this?
@frankieplayzz83828 ай бұрын
did you make the o on object capital?
@ldskategaming2083 Жыл бұрын
How much course for the unity Codding 🔍
@daily.modivation8 ай бұрын
for me it sais other does not exist oin the current context
@OzlyFR Жыл бұрын
Can you pls add the script in comments it dont work for me i think i did the script wrong
@hiFizz1 Жыл бұрын
If you've copied the code and it still doesn't work its maybe because you forgot to attach the script TO THE GAMEOBJECT that will be triggered also you maybe forgot to the tag for your Player. To do this go to your player prefab/gameobject -> inspector -> at the top you have a tag thing go there and press add another tag AND type Player (Same as in the script ).And stop asking for code and learn to do it for yourself .
@chickengunplayer30658 ай бұрын
Add pls scricts
@Glarer8 ай бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; public class jumpscares : MonoBehaviour { public GameObject JumpScareImg; public AudioSource audioSource; void Start() { JumpScareImg.SetActive(false); } private void OnTriggerEnter(Collider other) { { JumpScareImg.SetActive(true); audioSource.Play(); StartCoroutine(DisableImg()); } } IEnumerator DisableImg() { yield return new WaitForSeconds(2); JumpScareImg.SetActive(false); } }
@NIGHTFOX78529 ай бұрын
Plz bro script link
@Glarer8 ай бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; public class jumpscares : MonoBehaviour { public GameObject JumpScareImg; public AudioSource audioSource; void Start() { JumpScareImg.SetActive(false); } private void OnTriggerEnter(Collider other) { { JumpScareImg.SetActive(true); audioSource.Play(); StartCoroutine(DisableImg()); } } IEnumerator DisableImg() { yield return new WaitForSeconds(2); JumpScareImg.SetActive(false); } }