In the script below I tried to change the image label's position. But it keeps changing to {0, 0},{0, 0} other than changing it to the desired position. How do I fix this?
1 | arrow = script.Parent.Parent:WaitForChild( 'PlayArrow' ) |
2 |
3 | arrow.Position = UDim 2. new( { 0 , 0 } , { 0.2 , 0 } ) |
4 | wait( 0.05 ) |
5 | arrow.Position = UDim 2. new( { 0.05 , 0 } , { 0.2 , 0 } ) |
It looks like your issue is copying and pasting the brackets from the properties panel, to fix this just remove the brackets.
1 | arrow = script.Parent.Parent:WaitForChild( 'PlayArrow' ) |
2 |
3 | arrow.Position = UDim 2. new( 0 , 0 , 0.2 , 0 ) |
4 | wait( 0.05 ) |
5 | arrow.Position = UDim 2. new( 0.05 , 0 , 0.2 , 0 ) |