I have a fairly simple tween running on an object that I want to loop. It gets slowly bigger, waits a bit, then gets slowly smaller and repeats.
For some reason, after a loop or two, when it gets to the bigger size the object returns to the original size during the waiting period before returning to the size it should be and running the shrinking tween. I feel like I’d know the issue if it did this every time, but it doesn’t, it takes a few loops so I am confusion
Here’s the script I use, no clue what to do lmao
local TS = game:GetService("TweenService")
local sphere = script.Parent
local pos1 = {["Size"]=sphere.Size}
local pos2 = {["Size"]=sphere.Size + Vector3.new(4,0,0)}
local intweeninfo = TweenInfo.new(4,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0)
local outtweeninfo = TweenInfo.new(6,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0)
local tweenopen = TS:Create(sphere,intweeninfo,pos2)
local tweenclose = TS:Create(sphere,outtweeninfo,pos1)
while true do
tweenopen:Play()
tweenopen.Completed:Wait(.1)
wait(3)
tweenclose:Play()
tweenclose.Completed:Wait(.1)
end