This has been bothering me since i started scripting. Basically,when i used the .Touched event like this for example

local Brick = script.Parent

Brick.Touched:connect(function()
	print("You just touched this part")
end)

And when i touch the part,instead of printing "You just touched this part" once It prints it tons of times,and it just spams the output sometimes. Im trying to make a weapon damage only by 30 damage,instead it basiclly "Loops" the damage,doing like 900 or so because of that

Is there a solution for this?

4 comments

0

Thanks alot

0

That fires every frame that the part is touced which is why it "loops" the damage.

0

Okay