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 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
1player = game.Players.LocalPlayers
2 
3if player.character.humanoid  then
4 
5end
0
is LocalPlayer, i dont think you need the s theCJarmy7 1293 — 9y
0
also, Character and Humanoid have to be capitalized, and i think you need something after then theCJarmy7 1293 — 9y
0
oh thxs BuilderCosmic 43 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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

1player = game.Players.LocalPlayers
2if player.Character.Humanoid then
3end

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

1player = game.Players.LocalPlayers
2repeat wait() until player.Character ~= nil
3 
4if player.Character.Humanoid then
5end
Ad

Answer this question