Why does the GUI stop?

I’m trying to make a GUI that gives tips, it’s supposed to come down from the top of the screen and then go back up and out of view and then come back down with a different tip. Right now it comes down, goes back up, and stays there. I’m not sure why because I had run it a few times before and it had worked fine for a few days then it randomly stopped working.

local text = script.Parent

while true do
	text.Text = "Tip 1"
		text:TweenSizeAndPosition(
			UDim2.new(0, 1087,0, 32),
			UDim2.new(0.117, 0,0, 0),
			"Out",
			"Quad",
			1.5,
			false
	)
		wait(25)
		text:TweenSizeAndPosition(
			UDim2.new(0, 1087,0, 32),
			UDim2.new(0.127, 0,-0.309, 0),
			"Out",
			"Quad",
			1.5,
			false
		)
		text.Text = "Tip 2"
		wait(1)
		text:TweenSizeAndPosition(
			UDim2.new(0, 1087,0, 32),
			UDim2.new(0.117, 0,0, 0),
			"Out",
			"Quad",
			1.5,
			false
1 Like

Mayve this is what you want

local text = script.Parent

while true do
	text.Text = "Tip 1"
	text:TweenSizeAndPosition(
		UDim2.new(0, 1087,0, 32),
		UDim2.new(0.117, 0,0, 0),
		"Out",
		"Quad",
		1.5,
		false
	)
	wait(25)
	text:TweenSizeAndPosition(
		UDim2.new(0, 1087,0, 32),
		UDim2.new(0.127, 0,-0.309, 0),
		"Out",
		"Quad",
		1.5,
		false
	)
	wait(1)
	text.Text = "Tip 2"
	text:TweenSizeAndPosition(
		UDim2.new(0, 1087,0, 32),
		UDim2.new(0.117, 0,0, 0),
		"Out",
		"Quad",
		1.5,
		false
	)
	wait(25)
	text:TweenSizeAndPosition(
		UDim2.new(0, 1087,0, 32),
		UDim2.new(0.127, 0,-0.309, 0),
		"Out",
		"Quad",
		1.5,
		false
	)
	wait(1)
end

Not the most efficient but should work

2 Likes