i've been trying to research about this a lot, but i can't find an anwser. i want to make > Spin2 play after > Spin1 finishes, but the part just ends up freezing in place.
to clarify, the object is a cylinder inside the workspace.
here's my current code (sorry if it's weird, i'm new to coding):
TweenService = game:GetService("TweenService")
spininfo = TweenInfo.new(5,Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 2, false, 0)
spininfo2 = TweenInfo.new(3,Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 2, false, 0)
spininfo3 = TweenInfo.new(1.7,Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, false, 0)
local part = script.Parent
Spin1 = TweenService:Create(part,spininfo,{CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(180),0)})
Spin2 = TweenService:Create(part,spininfo2,{CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(180),0)})
Spin3 = TweenService:Create(part,spininfo3,{CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(180),0)})
Spin1:Play()
Spin1.Completed:Connect(function(playbackState)
if playbackState == Enum.PlaybackState.Completed then
Spin2:Play()
end
end)
Spin2.Completed:Connect(function(playbackState)
if playbackState == Enum.PlaybackState.Completed then
Spin3:Play()
end
end)

3 comments
i got one problem tho. whenever the tween finishes, it doesn't start playing the other tween. i tried making it print something, then play Spin2. but it only printed, and didn't play.
script: Spin1:Play() Spin1.Completed:Connect(function() print("Tween ended!") Spin2:Play() end)
add a wait.