Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you force a part to go through another when resizing in lua?

Asked by 6 years ago

If there's a much more efficient way to make the hitbox for an AoE spell please let me know.

Right now I'm trying to have a ring that expands out from the player as the hitbox for the AoE spell. Whether it expands or spawns at its max range doesn't matter a whole lot for me at this point, but the problem I'm having is the part absolutely refuses to go through another part. Even when CanCollide is off, if the part resizes and finds its position puts it in contact with another part, it'll move, usually positively along the Y axis, until it is no longer touching the part. This causes the hitbox to jump around whenever it run into something.

Again, if I'm making how to make an AoE effect more complicated than it needs to be I'd be grateful for some tips.

0
Set its CFrame immediately after changing its size. You can also change the scale of the mesh instead. XAXA 1569 — 6y

Answer this question