Touched event looping,being triggered more than once?
This has been bothering me since i started scripting.
Basically,when i used the .Touched event like this for example
1 | local Brick = script.Parent |
3 | Brick.Touched:connect( function () |
4 | print ( "You just touched this part" ) |
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?