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

Getting the player variable in a normal script?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
1
Answered by 4 years ago

You can do

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

Answer this question