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

[Solved] How do you remove all velocity from a part?

Asked by
PastDays 108
5 years ago
Edited 5 years ago

So in my game you are a ball that rolls about, when pressing 'P' it re-spawns your ball but the problem i'm having is the velocity is carrying over, how do i remove all velocity?

Any help is appreciated!

1 answer

Log in to vote
1
Answered by 5 years ago

Set the part's velocity to 0.

PART.Velocity = Vector3.new(0,0,0)

If you want it to stop rolling then

PART.RotVelocity = Vector3.new(0,0,0)
0
That was the problem, Rotation velocity, Never thought of that thank you! PastDays 108 — 5y
Ad

Answer this question