https://developer.roblox.com/en-us/api-reference/event/ProximityPrompt/Triggered
It’s really simple, however this piece of code is just unnecessary and it uses bad practices (like using the deprecated RBXScriptSignal:wait
method, using ChildAdded
instead of PlayerAdded
)
It’s unnecessary to wait for the LocalPlayer
– LocalScripts run on the client which means there must be a client.
That code piece is just redundant.