So when i made a tween for a bar to simply increase the size of X, i also added a line so when it reaches the end, it should go back to 0 size, but it doesn't
Here is the script:
local Event = game:GetService("ReplicatedStorage").ClientEvents:WaitForChild("AtomStartProgress")
local Tween_Service = game:GetService("TweenService")
local Fill_Time = 1
local Tween_Information = TweenInfo.new(Fill_Time,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)
local Tween_Targerts = {
Size = UDim2.new(0,250, 0,35),
Position = UDim2.new(0.321, 0, 0.22, 0)
}
local Fill_Tween = Tween_Service:Create(script.Parent,Tween_Information,Tween_Targerts)
wait(0.4)
Event.Event:Connect(function()
Fill_Tween:Play()
wait()
script.Parent.Size = UDim2.new(0,1, 0,35)
end)

1 comment
Basically, it didn't skip the line. As soon as the tween plays, it goes to the next line and did the last part but change by the tween again.