its supposed to do damage to the person it touches beside the person creating the part(fireEmmit)
but it doesn't do damage at all when i have the and not character.RightHand part in it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fireEmmit.Touched:Connect(function(Part) if Part.Parent:FindFirstChild("Humanoid") ~= nil and not Character.RightHand then local Human = Part.Parent:FindFirstChild("Humanoid") Human.Health = Human.Health -22 end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~= nil
bit, ROBLOX Developer Hub says it’s inefficient. You also need to use not part.Parent:FindFirstChild"RightHand"
to make sure there isn’t a RightHand
.fireEmmit.Touched:Connect(function(part) if part.Parent:FindFirstChild"Humanoid" then if not part.Parent:FindFirstChild"RightHand" then part.Parent.Humanoid:TakeDamage(22) end end end)