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

How do I find player In "Players"?

Now my question is like, my game is a single player game but I can't use LocalPlayer in the script of the onTouch part, so how can I get to the playergui? I mean how can I get to the player in "players"?

1 answer

✓ Accepted answer

Hey I got the answer you need to put the script in the main areas such as Serverscriptservice,Startergui or starterplayerscripts. So I would recommend putting the script in server script service.

4 comments

0

Wait, onTouched can work even when the script is not in the part?

0

There is obviously more than one way to get a player from the server.

0

Yes it can.

0

I love you Thx

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