Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to locate the player from Replicated Storage?

So I have a gui in the replicated storage, and it uses remoteevents and such, however, i'm trying to locate the player but cannot. Any help? Thanks =^)

1 answer

Items it ReplicatedStorage don't become a child of a player automatically, nor do scripts run in there. You'd have to move that GUI to a players PlayerGui from another script. Once the GUI is inside the players PlayerGui, it will run. Use a LocalScript to pass the player to the script using your RemoteEvent/Function. The first argument that will be passed to the RemoteEvent/Function from a LocalScript will be the player it was called from.

This discussion is preserved as it was. New answers, comments, and votes are closed.