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

How do you find the local player?

Asked by
TNTeon -1
7 years ago

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

1 answer

Log in to vote
0
Answered by
OfcPedroo 396 Moderation Voter
7 years ago
Edited 7 years ago

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!

Ad

Answer this question