So, radius is a brick that represents the area of effect, and I wanted it so that anyone touching radius gets an attack decrease of -0.2 ONCE. This is what i came up with
radius.Touched:connect(function(hit)
local attack = hit.Parent:WaitForChild("Attack")
attack.Value = attack.Value - 0.2
end)
The problem is, the attack.Value - 0.2 just gets spammed by anyone moving within the radius. Is there a way so that each time someone touches the radius, the attack.Value-0.2 occurs only once, and not just spammed? ty for the help in advance

1 comment
do you want to disconnect it?