I’ve Hinge constraints that connect the Cars to the Ferris wheel. However, When tweening the wheels base to rotate. I’ve to do it with a wait about 120 seconds for the hinge’s to response and effect the wheel cars. Otherwise it will take the same amount of time for it to start taking effect but will bug the cars and rotate infinitely.
In the video bellow I show how I waited 120s and it worked fine but when I die/ reset. It stops then takes a time to reload and gets bugged and rotate weirdly.
local TweenService = game:GetService("TweenService")
local spininfo = TweenInfo.new(10,Enum.EasingStyle.Linear)
local wheelBase = workspace.Maps.Forest:FindFirstChild("WheelBase", true)
local textLabel = wheelBase.BillboardGui.TextLabel
Spin1 = TweenService:Create(wheelBase, spininfo, {CFrame = wheelBase.CFrame * CFrame.Angles(math.rad(120),0,0)})
Spin2 = TweenService:Create(wheelBase, spininfo, {CFrame = wheelBase.CFrame * CFrame.Angles(math.rad(240),0,0)})
Spin3 = TweenService:Create(wheelBase, spininfo, {CFrame = wheelBase.CFrame * CFrame.Angles(math.rad(360),0,0)})
local waitTime = 120
while true do
textLabel.Text = "Starting in "..waitTime.. "s"
wait(1)
waitTime -= 1
if waitTime == 0 then
textLabel.Parent:Destroy()
break
end
end
Spin1:Play()
Spin1.Completed:Connect(function()Spin2:Play() end)
Spin2.Completed:Connect(function()Spin3:Play() end)
Spin3.Completed:Connect(function()Spin1:Play() end)
Hinge Properties