Since this script shows that the LocalScript is a child of the proximity prompt, I can assume that this is located somewhere in the Workspace. LocalScripts do not run in the workspace unless it’s parented to a players character. Either switch this to a normal script and use remote events, or try to put it in somewhere where the LocalScript works (StarterGui, StarterPlayer, ReplicatedStorage/First)
I say TRY because I’m not sure if events like Triggered work on LocalScripts
Yeah, after looking at some other topics I found that you cant use a local script on a proximity prompt and you can only use a normal script, so i have to change the script type.
also you are correct, you cant use triggered with local scripts