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

What is the error here?

player = game.Players.LocalPlayers

if player.character.humanoid  then

end

3 comments

0

is LocalPlayer, i dont think you need the s

0

also, Character and Humanoid have to be capitalized, and i think you need something after then

0

oh thxs

1 answer

✓ Accepted answer

Make sure you have "Capitalized Sensitivity" that will be:

player = game.Players.LocalPlayers
if player.Character.Humanoid then
end

and if keeps getting error and saying: Character is a nil value then make it like this:

player = game.Players.LocalPlayers
repeat wait() until player.Character ~= nil

if player.Character.Humanoid then
end

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