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

What is wrong with "Humanoid = Character.Humanoid"?

Asked by 10 years ago
001print("Hello world!")
002 
003Character = script.Parent
004Humanoid = Character.Humanoid
005Torso = Character.Torso
006 
007function OnDeath()
008    print("Death")--  HAHA
009        wait(0.00000001)
010        Humanoid.Parent = nil
011    if Torso then
012        local Head = Character:FindFirstChild("Head")
013        if Head then
014            local Neck = Instance.new("Weld")
015            Neck.Name = "Neck"
View all 148 lines...

1 answer

Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago

It hasn't loaded yet.

1Humanoid = Character:WaitForChild("Humanoid")
0
Thanks! (I am about to post another bug) iiCasual 20 — 10y
Ad

Answer this question