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

Getting the player variable in a normal script?

Hello devs, im having some trouble figuring out how to get a player variable like:

local plr = game.Players.LocalPlayer

but idk how to do it in a normal script please help me, Thank you :)

1 answer

✓ Accepted answer

You can do

game.Players.PlayerAdded:Connect(function(plr)
--Your Code
end)

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