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

Question about changing from a Local Script into a Script?

So I had to change my script from a local script into a normal script. Is there a certain word or variable I need to use to accesses the LocalPlayer in a normal script?

1 answer

✓ Accepted answer

You can't access the local player through a server script, instead you can use PlayerAdded. More info on it here but I will show it here anyway:

game.Players.PlayerAdded:Connect(function(player)
	-- you can then do things like use characteradded to get the character, etc.
end)

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