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

Character script Help?

Player = game.Players.LocalPlayer

Player.Character:WaitForChild("Humanoid").Died:connect(function()
Player:Kick()
end)

For some reason,It says that "Character" is nil...?

1 answer

✓ Accepted answer

The character has not loaded yet, try adding this onto line 2:

repeat wait() until Player.Character

1 comment

0

Thanks :D

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