Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I am making some gui tips. How do I Fix GUI Tween its not working?

local b = script.Parent

while true do
	b.Text = "Press "/" To Chat"
	b:TweenPosition(UDim2.new(.5, 0, 0, 0), "Out", "Sine", 1, false)
	wait(5)
	b:TweenPosition(UDim2.new(.5, 0, -1, 0), "In", "Sine", 1, false)
	wait(1.1)
	b.Text = "Check Out The Gamepasses Below!"
	b:TweenPosition(UDim2.new(.5, 0, 0, 0), "Out", "Sine", 1, false)
	wait(5)
	b:TweenPosition(UDim2.new(.5, 0, -1, 0), "In", "Sine", 1, false)
	wait(1.1)
	b.Text = "Invite all your Friends for a Chance to Win Unlock All Guns Gamepass!"
	b:TweenPosition(UDim2.new(.5, 0, 0, 0), "Out", "Sine", 1, false)
	wait(5)
	b:TweenPosition(UDim2.new(.5, 0, -1, 0), "In", "Sine", 1, false)
	wait(1.1)
end

2 comments

0

What's the context?

0

TYSM :)

1 answer

✓ Accepted answer

The problem might be at line 4. You need to use escape characters to insert a " in strings.

b.Text = "Press \"/\" To Chat"

If you just use " there will be an error, if you use \" there wont!

This discussion is preserved as it was. New answers, comments, and votes are closed.