I want a brick to kill on touch, but also when killed to add fire to the player. Can anyone help me? This does not work.
script.Parent.Touched:connect(function(part) Instance.new("Fire") local h = part.Parent:FindFirstChild('Humanoid') if h then h.Health = 0 end end)
You have to specify the parent of the fire, in your case, you probably want to do
Instance.new("Fire", part.Parent:FindFirstChild("Torso"))
Also, unrelated, you might want to use BreakJoints() to the character model rather than setting the health to zero.