I've checked the developer log, no errors relating to this script. The tweening just doesn't play. . Anyway, I have this system to tween 2 things at once, Coroutines just didn't time correctly. so I did this in the main script:
local Int = Instance.new("IntValue")
Int.Parent = screen
Int.Name = "TweenTrigger"
Int.Value = 0
local Left, Right = game.ReplicatedStorage.Left, game.ReplicatedStorage.Right
Left:Clone().Parent = screen
Right:Clone().Parent = screen
while wait() do
if Int.Value == 2 then
Int.Value = Int.Value + 1
In two seperate scripts named Left and Right, for the tweening, I have this code:
while wait() do
if script.Parent.Name == "LoadGui" then break end
end
local Int = script.Parent:WaitForChild("TweenTrigger").Value
local Right = script.Parent.Right
Int = Int + 1
if Int == 3 then
Right:TweenPosition(UDim2.new(1.5, 0, 0, 0), "In", "Sine", 5, false, nil)
Right:Destroy()
script:Destroy()
end
Any ideas as to why this wouldn't work are appreciated

3 comments
use local tween = Right:TweenPosition(UDim2.new(1.5, 0, 0, 0), "In", "Sine", 5, false, nil), repeat wait() until tween.TweenStatus == Enum.TweenStatus.Completed (Wiki it though, not sure what the actual value is called)
What about the repeat until? Unless right and left are created at the exact same time..
It still doesn't play.. No errors