Text = "Test"
script.Parent.Touched:connect(function(Player)
Player.FindFirstChild("Humanoid")
Humanoid.Health = 0
print(Text)
✓ ANSWER ACCEPTED
Help with function?
1 answer
✓ Accepted answer
Okay, when you fire a Touched function in a part, it finds the PART, not MODEL PARENT.
Text = "Test"
script.Parent.Touched:connect(function(Player)
hum= Player.Parent:FindFirstChild("Humanoid")
hum.Health = 0
print(Text)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
