Hey there! So I’ve been trying to make a moving part which players can jump on and move through it, for a obby of mine. I’ve made it with BodyPosition and added BodyGyro to stop it from constantly rotating on it’s sides while moving, I tried to increasing the BodyGyro’s BodyTorque to 40000,40000,40000 but it still does not work.
Here is my script which I’m using to move the part:
local MovingPlatform = script.Parent.Parent.MovingPlatform
local MovingP = MovingPlatform.MovingP
local Start = MovingPlatform.Start
local Finish = MovingPlatform.Finish
local bodyposition = MovingP.BodyPosition
Time = 3
while true do
bodyposition.Position = Start.Position
wait(Time)
bodyposition.Position = Finish.Position
wait(Time)
end
local MovingPlatform = script.Parent.Parent.MovingPlatform
local MovingP = MovingPlatform.MovingP
local Start = MovingPlatform.Start
local Finish = MovingPlatform.Finish
local bodyposition = MovingP.BodyPosition
local OrigOrientation = MovingPlatform.Orientation
Time = 3
MovingPlatform:GetPropertyChangedSignal("Orientation"):Connect(function()
MovingPlatform.Orientation = OrigOrientation
end)
while task.wait(Time) do
bodyposition.Position = Start.Position
task.wait(Time)
bodyposition.Position = Finish.Position
end