If a part is flung across the map and I want it to do damage if it is moving fast enough, how would I do this?

Would the Velocity property work?

Like maybe this:

speedOfPart = game.Workspace.Part.Velocity --Maybe?

Or would I have to do something more such as magnitude and such? I just have no idea where to start.

4 comments

0

Velocity(BodyVelocity) is more of a Force, Than to find the Speed.

0

So maybe get the position of the part at different points in time and then use magnitude? :D

0

I do not know much about magnitude, but you can try it out.

0

Check how fast it is moving at. Take the X and Z properties in the Velocity and find the average(X+Z/2) and that is the speed they are flying at. You need to make sure in a script, that X or Z is not 0.