I would like all of the Parts of the Humanoid (Head, Torso, Left Arm, Right Arm, Left Leg, Right Leg) to set on Fire and for the BodyColor to change to Black.
I created a Script that kills any Humanoid when they touch the Part but I do not know how to set the Player on Fire and turn all of their BodyColors to the color of Black.
script.Parent.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = 0 end end)
script.Parent.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = 0 for a,b in pairs(hit.Parent:GetChildren()) do if b:IsA("Part") then b.BrickColor = BrickColor.new("Black") burn = Instance.new("Fire") fire.Parent = b hit.Parent.Shirt:Destroy() hit.Parent.Pants:Destroy() end end)
Tell me if it doesnt work.
script.Parent.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = 0 for i,v in pairs(hit.Parent:GetChildren()) do if v.ClassName == "Part" then v.BrickColor = "Black" fire = Instance.new("Fire") fire.Parent = v end end end end)