I wanna make a wheel (photo) rotate correctly. Wheel has Display (model) that has Center (invisible part), so need to make this part rotate. I’ve tried this:
local i = 2
local WheelModel = workspace["Carnival Map"].Wheel
local DisplayCenter = WheelModel.Display.Center
local deg = math.rad(60*(i-1))
local a = game["Run Service"].Heartbeat:Connect(function(dt)
DisplayCenter.CFrame *= CFrame.Angles(-math.rad(250)*dt,0,0)
end)
task.wait(2)
a:Disconnect()
local tw = game.TweenService:Create(
DisplayCenter,
TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{CFrame = CFrame.new(DisplayCenter.Position)*CFrame.Angles(deg,math.pi,0)}
)
tw:Play()
but its kinda bad one. Also tried tween, but idk how to make it do 360 rotation:
CFrame = CFrame.new(DisplayCenter.Position)*CFrame.Angles(math.pi*2,math.pi,0)
(it dont work)