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.
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
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.