[Solved] How would you make an arrow in a gui with frames? [CLOSED]
Asked by
6 years ago Edited 6 years ago
This question has been solved by the original poster.
Im trying to make a gui with a back button. I want the back button to have an arrow on it. I can't seem to find a position to put the arrow pieces.
Here's what i have (i only put the necessary code in):
03 | p 1 y = 0.5 +(y* 0.1 *math.sin(math.rad( 45 ))) |
04 | p 2 y = 0.5 -(y* 0.1 *math.sin(math.rad( 45 ))) |
05 | p 1 x = 0.23 - (x* 0.1 *( 1 -math.sin(math.rad( 45 )))) |
06 | p 2 x = 0.23 - (x* 0.1 *( 1 -math.sin(math.rad( 45 )))) |
07 | local arrowmain = Instance.new( "Frame" , backbutton) |
08 | arrowmain.Size = UDim 2. new( 0.6 , 0 , 0 , 0 ) |
09 | arrowmain.Position = UDim 2. new( 0.23 , 0 , 0.5 , 0 ) |
10 | arrowmain.BorderSizePixel = 4 |
11 | local arrowp 1 = Instance.new( "Frame" , backbutton) |
12 | arrowp 1. Size = UDim 2. new( 0.2 , 0 , 0 , 0 ) |
13 | arrowp 1. Position = UDim 2. new(p 1 x, 0 ,p 1 y, 0 ) |
14 | arrowp 1. BorderSizePixel = 4 |
16 | local arrowp 2 = Instance.new( "Frame" , backbutton) |
17 | arrowp 2. Size = UDim 2. new( 0.2 , 0 , 0 , 0 ) |
18 | arrowp 2. Position = UDim 2. new(p 2 x, 0 ,p 2 y, 0 ) |
19 | arrowp 2. BorderSizePixel = 4 |
Any help would be appreciated thanks.