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

How do you find the local player?

how do you find the local player's model? I need to find the local player in the workspace not in players.

1 answer

Try this...

In a LocalScript:

repeat wait() until game.Players.LocalPlayer.Character
local character = game.Players.LocalPlayer.Character --in here, the 'character' variable is what you were asking.

In a Script:

game.Players.PlayerAdded:connect(function(player)
	repeat wait() until player.Character
	local character = player.Character --in here, the 'character' variable is what you were asking.
end

If this worked for you (which will happen for sure), please mark the answer as the solution! =]

And, as always, good scripting!

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