Cilinder keeps rolling HELP!

Hello i have a problem with my script : my cilinder keeps spinning even after i have put the bodygyro on i have tried to anchor it doesnt work here is a clip: https://gyazo.com/e6dad5690e28d101bc43cf0352116517
script:
local model = game.Workspace.Modelelevator
local platform = game.Workspace.Modelelevator.Platform
local start = model.Start
local finish = model.Finish
local bodyposition = model.Platform.BodyPosition
while true do
bodyposition.position = start.position
wait(6)
bodyposition.position = finish.position
wait(6)
bodyposition.position = start.position
end

how can i fix this?

Try setting the MaxTorque of the BodyGyro to Vector3.new(math.huge,math.huge,math.huge). That should make it resistant to other collisions.

im new and i dont get it i have tried to set the max torque higher but it doesnt work

You will need to set the Gyro’s CFrame to the part’s current CFrame via script, while also making sure the torque is high enough.

Is the body gyro parented to the part? The default CFrame for the body gyro is zeroed out so you shouldn’t even need to script that bit unless that part is already rotated.

the cilinder is rotated -90 degrees z

You can use an AlignOrientation instead of a body gyro.
make an attachment on either the start or the finish
and then another on the platform
make the AlignOrientation attachments to those 2 attachments.
set the RigidityEnabled to true
make sure that both of the attachment’s yellow arrow is facing upwards on both of them

1 Like