Error with a .Touched function

Hey guys, I have a problem. I have a tower that can get hit by enemies. The enemies summon attacks that are anchored, and they hit the tower. Once that happens, the tower is supposed to take damage, but it doesn’t because every part in the tower is anchored. How can I make the tower still take damage despite it being anchored?

you can try checking the distance between the projectile and the tower by using “.Magnitude”

Example:

if ("Projectile" - "Tower").Magnitude < 1 then

"Make Tower Take Damage"

end
2 Likes

That worked! Thanks for the help. :)

No Problem, glad i could help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.