Gui only tweens once?

What do i want to achieve? A simple tween

What is the issue The Gui only tweens once

local frame = script.Parent.Parent.Menu
local button = script.Parent
local TweenService = game:GetService('TweenService')

button.MouseButton1Click:Connect(function()
	frame.Visible = true
	frame:TweenPosition(UDim2.new(0.289, 0,0.217, 0), "Out", "Quad", 0.25, true)
	frame.Outline:TweenPosition(UDim2.new(0.056, 0,0.078, 0), "Out", "Quad", 0.25, true)
	frame.Close:TweenPosition(UDim2.new(0.944, 0,-0.072, 0), "Out", "Quad", 0.25, true)
	frame:TweenSize(UDim2.new(0.423, 0,0.567, 0), "Out", "Quad", 0.25, true)
	frame.Outline:TweenSize(UDim2.new(0.888, 0,0.851, 0), "Out", "Quad", 0.25, true)
	frame.Close:TweenSize(UDim2.new(0.101, 0,0.149, 0), "Out", "Quad", 0.25, true)
end)

There is no errors in the output

Aren’t you only wanting it to tween once, it looks as if, perhaps I am seeing things wrong, that you are never setting it back to the original position then running twice (Or maybe you want it to tween more than once without resetting?) Also, maybe add a wait between full tween animations to separate the two tweens, even if a small one. I’ve had problems like this within a function too.

1 Like

Throw in an extra parameter after the easing directions for the number of times you want it to repeat…this is Repeat Count. In your case the 0.25 will have to be less than zero if you want to repeat infinitely.

I made it -1 but now it doesn’t tween so what number to i change it to.

Ok so do you mean after the gui closes i set it to the original position?