So i'm trying to make like an explosion camera shake and i'm trying to invert the magnitude between the explosion and nearby players but i don't know how to do it? I'm kind of confused is this the way to do it or?
math.floor(math.abs(math.abs((v.Character.Torso.Position - ExplosionPart.Position).Magnitude)*-1)/5)

3 comments
why would you need to invert the magnitude
To increase the intensiy of the explosion as you get closer
Camera shake*