Hello all, so i have this local script for a part that when you touch it, it plays some coins sounds and with a debounce so it doesnt play again for that player. Thing is, if you die, then you can trigger it again. I only want to make it able to play once per “session” if you could say it like that. Any ideas?
Where would the GUI be located, though?
Where is the script located? Try putting it into StarterPlayerScripts.
The Trigger Part is in the Workspace, same as the sound. The script is on StarterCharacterScripts right now just to see if it worked.
Problem with putting it in StarterPlayer would be that theres a high chance for the player to die before reaching the part where the sounds needs to be played.
They will still have it in them until the player leaves. Your script only triggers upon colliding with the trigger part, right?