Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 3 years ago
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

0
What's the context? aurich98 86 — 3y
0
TYSM :) SirOmeletGaming 9 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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!

Ad

Answer this question