How can i refer to the player in a normal script

If this isnt possible to do then just tell me but i need a way to refer to the player in a normal script Without using a function

A normal script runs on the server which has all the players, which can be obtained via :GetPlayers() but this will give you a table of all players.
If it’s a single player server you could do:

local player = game:GetService("Players"):GetPlayers()[1]

If you know the User ID you could also get a specific player using :GetPlayerByUserId(12345)

1 Like

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