HELP! Tweens Not Working

  1. What do you want to achieve? Play a Tween

  2. What is the issue? Tweens Not Playing

  3. 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)
1 Like

I’m not that great at scripting, but is this a local or server script? Also, i believe you need to define char variable.

i have a char variable and server script

is there any error? thirty thirty

Can you use print to know where the code stops?

I was about to ask what errors show

emmmm code not stopping only tween not playing