How to stop an object flinging?

Hello, I have a boat that uses body gyro/position/velocity to move but when someone walks into it, it spins. So how do I make it so that the boat does not spin?

1 Like

Try to use your own physics script because I think this is just a problem with roblox physics

1 Like

is there no way I can set something to stop it from spinning?

1 Like

Maybe make a script that always sets RotVelocity to a maximum amount, so it can’t spin faster than a defined number

local part = script.Parent -- Part to stop from spinning

part.Changed:Connect(function()
    local v = part.RotVelocity
    if v.Magnitude > 2 then
        part.RotVelocity = Vector3.new(math.min(v, 2), math.min(v, 2), math.min(v, 2))
    end
end

In the Vector3.new() function change X, Y or Z to zero if you don’t want the boat to spin on these directions, if you don’t want it to spin at all then just change it all to

part.Changed:Connect(function()
    part.RotVelocity = Vector3.new(0, 0, 0)
end
3 Likes