Easiest way to reset the velocity of a model?

I am trying to reset my cars models velocity for a race but idk how to do this are there any better ways than just looping?

If using bodyvelocity then just set maxforce to a high amount and set velocity to vector3.new(0,0,0) for a moment.

Im using constraints for my car

Change it for your constraints and use:

for i,v in pairs(car:GetDescendants()) do
	if v:IsA("HingeConstraint") then
		v.Velocity = 0
	end
end

I don’t know what constaints you using so i can’t say truly.

local ResetVelocity = function()
	for Number, Instance2 in pairs(Vehicle:GetDescendants()) do
		if Instance2.ClassName == "Part" then
			Instance2.Velocity = Vector3.new(0, 0, 0)
			Instance2.RotVelocity = Vector3.new(0, 0, 0)
		end
	end
end
5 Likes