When my particle "Steam" is enabled then the player should take damage.
The player does not take any damage for some reason, what is wrong?
while true do script.Parent.Steam.Enabled = true wait(3) script.Parent.Steam.Enabled = false wait(3) end
if script.Parent.Steam.Enabled == true then script.Parent.Dead.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid ~= nil then humanoid.Health = humanoid.Health -10 end end) end
The second script works without "if script.Parent.Steam.Enabled == true then" so it's something with that.