How would I format this string?
Alrighty, so I've got a script that moves a toolbar onto and off of the screen at the click of a button. It operates on the y-axis, so naturally I'd like a little arrow to see which way the bar will go when clicked. If only it were so simple. Here's the code, I'll explain what happens after it:
03 | script.Parent.MouseButton 1 Click:connect( function () |
05 | script.Parent.Parent:TweenPosition(UDim 2. new( 0 , 0 , 1 , 0 ), "Out" , "Quad" , 0.75 ) |
07 | script.Parent.Text = "\/" |
09 | elseif down = = true then |
10 | script.Parent.Parent:TweenPosition(UDim 2. new( 0 , 0 , 0.8 , 0 ), "Out" , "Quad" , 0.75 ) |
12 | script.Parent.Text = string.reverse( "\/" ) |
The problem begins on line 12. An "unfinished string" error is thrown, and I have no idea how to properly format it so I get /\ and \/. Line 12 is a result of my struggle. Any knowledge out there to help?