I made a Volcano with a damagearea but im only getting damged once (when i enter the area)
Script inside the damagearea:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and not hit.Parent:FindFirstChild("LavaHit") then
local I = Instance.new("IntValue",hit.Parent)
I.Name = "LavaHit"
game.Debris:AddItem(I,5)
hit.Parent.Humanoid:TakeDamage(10)
end
end)

1 comment
I recommend using Region3 tbh.