Roatatable platform

Hiya!

I was wondering if someone could help me to make make a part/platform roatatable. By roatatable I mean, I need a piece of my stage to rise up and freely roatate once it I click a button. I would like it to stop spinning and go back to it’s original location & roatation once the button is clicked again.

I hope someone can help me out, I have been sturggling for hour to figure it out myself.

Thank you,

Have a wonderful day! :slight_smile:

Examples of the movement.
pLjQVrY
9Is3Fw6

1 Like

basically just use robloxs body movers. lol i can see the meta responses coming but you wanna use body gyro

OH WAIT IM SO SORRY I DIDNT READ ALL OF IT

Actual answer

Basically just do what everyone else is suggesting, spinning it some how sporadically and when u want it to stop you’ll want to interpolate its rotation to its past rotation using the lerp formula

min+(max-min)*t

for loop t (a range [0, 1])

1 Like

If you want it to rotate do this

local rotate = 180 -- max is 360

for i=1, rotate do
  workspace.Part.Orientation.Y = i
end
1 Like
local RunService = game:GetService("RunService")
local part = -- path to your part

RunService.RenderStepped:Connect(function()
    part.Orientation += Vector3.new(1, 0, 1) -- set x, y and z value
end)

This will just add +1 to the x and z value of the part’s rotation every frame which means that it’s gonna be fluent on all devices despite the framerate.

1 Like

Use Stepped not RenderStepped.
, and do it in a server script.