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

Help with function?

Text = "Test"

script.Parent.Touched:connect(function(Player)
	Player.FindFirstChild("Humanoid")
	Humanoid.Health = 0
print(Text)

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.