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

What is the error here?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
player = game.Players.LocalPlayers

if player.character.humanoid  then

end
0
is LocalPlayer, i dont think you need the s theCJarmy7 1293 — 8y
0
also, Character and Humanoid have to be capitalized, and i think you need something after then theCJarmy7 1293 — 8y
0
oh thxs BuilderCosmic 43 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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
Ad

Answer this question