-
What do you want to achieve? Play a Tween
-
What is the issue? Tweens Not Playing
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub? = Yeah I Looked Solutions But Not Worked
local TWS = game:GetService("TweenService")
local newModel = Instance.new("Model",game.Workspace)
newModel.Name = "WaterPrisonModel"
local newPart = Instance.new("Part",newModel)
newPart.CFrame = char.PrimaryPart.CFrame
local newWeld = Instance.new("Weld",newPart)
newWeld.Part0 = newPart
newWeld.Part1 = char.PrimaryPart
local tweeninformation = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local partProperties = {
C0 = CFrame.Angles(math.rad(180),math.rad(0),math.rad(-180))
}
local tweeninformation2 = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local partProperties2 = {
C0 = CFrame.Angles(math.rad(-180),math.rad(0),math.rad(180))
}
local tween = TWS:Create(newWeld,tweeninformation,partProperties)
local tween2 = TWS:Create(newWeld,tweeninformation2,partProperties2)
tween:Play()
tween.Completed:Connect(function()
tween2:Play()
end)