Ok, So I am trying to set the position of a scrolling frame and it dosen't work, This is the output I am getting:
SurfaceGui.One.Res:4: bad argument #3 to 'CanvasPosition' (Vector2 expected, got string)
So I thought, Should I add a Vector2 to the statement?
But how?
Help pls
( ° ?? ?°)
As it is telling you, the CanvasPosition propety is a Vector2
You gave it (it "got") a string. So wherever you had your string, you're going to replace that with the new Vector2.
Something like this:
-- With string, INCORRECT frame.CanvasPosition = "(50, 100)"
should look like this:
frame.CanvasPosition = Vector2.new( 50 , 100 ) -- 50 is x, 100 is y, in pixels