ProximityPrompt.Triggered api reference page has unnecessary code

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)

image

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.

14 Likes

Hey! Thanks for this report. I’ve just logged it, and the team will get to it when they can. :slight_smile:

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.