I have been interested in making it so that when the player leaves the game, a sound is played (preferably for only the player, but it doesn’t really matter in my case whether it’s local or server).
I have been searching multiple other forums in search of answers, as my code never seemed to work. Apparently this block of code created by another user on a similar forum is supposed to work, but It does not seem to work in my case:
this forum is only from a few months ago, so I don’t understand how this is not working.
Am I overseeing something? Is the code already outdated? Any answers would be greatly appreciated. Thanks!