I’m trying to play multiple tweens but it’s not playing my tweens after tween2.
local TweenService = game:GetService("TweenService")
local part = game.Workspace.DoubleTube.Tube
local weld = Instance.new("Weld")
weld.Parent = part
weld.Part0 = part
weld.Part1 = game.Workspace.DoubleTube.Seat
game.Workspace.DoubleTube.Seat.Anchored = false
local goal = {}
goal.CFrame = CFrame.new(84.166, -3.98, -324.192)* CFrame.Angles(0,45,0)
local tweenInfo = TweenInfo.new(
10,
Enum.EasingStyle.Linear
)
local tween = TweenService:Create(part, tweenInfo, goal)
local goal2 = {}
goal2.CFrame = CFrame.new(-106.9, -3.98, -326.671) * CFrame.Angles(0, 90, 0)
local tweenInfo2 = TweenInfo.new(
10,
Enum.EasingStyle.Linear
)
local tween2 = TweenService:Create(part, tweenInfo2, goal2)
local goal3 = {}
goal2.CFrame = CFrame.new(-126.314, -3.98, -286.574) * CFrame.Angles(0, -45, 0)
local tweenInfo3 = TweenInfo.new(
5,
Enum.EasingStyle.Linear
)
local tween3 = TweenService:Create(part, tweenInfo3, goal3)
local goal4 = {}
goal2.CFrame = CFrame.new(-126.314, -3.98, -167.53) * CFrame.Angles(0, -90, 0)
local tweenInfo4 = TweenInfo.new(
10,
Enum.EasingStyle.Linear
)
local tween4 = TweenService:Create(part, tweenInfo4, goal4)
script.Parent.ClickDetector.MouseClick:Connect(function()
tween:Play()
wait(10)
tween2:Play()
wait(10)
print("work")
tween3:Play()
print("workss")
wait(5)
tween4:Play()
end)