Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I find player In "Players"?

Asked by 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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.

0
Wait, onTouched can work even when the script is not in the part? chacha489 16 — 5y
0
There is obviously more than one way to get a player from the server. DeceptiveCaster 3761 — 5y
0
Yes it can. Darthman522 10 — 5y
0
I love you Thx chacha489 16 — 5y
Ad

Answer this question