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

Character script Help?

Asked by
iLegitus 130
10 years ago
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

Log in to vote
0
Answered by 10 years ago

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

repeat wait() until Player.Character
0
Thanks :D iLegitus 130 — 10y
Ad

Answer this question