Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change CanvasSize?

game.Workspace.Part.SurfaceGui.CanvasSize = (10,10,0)

****Examples from my stupidity.

2 comments

0

use UDim2 thats the Vector3 for GUI's

0

No, a UDIM does not have a Z coordinate, so it is not like Vector3's, but it could be like a Vector2.

1 answer

✓ Accepted answer

You change it like any other UDim2's, like

game.Workspace.Part.SurfaceGui.CanvasSize = UDim2.new(X Scale, X Offset, Y Scale, Y Offset)

Since you did not define all the required fields, I could not fill all them out for you.

This discussion is preserved as it was. New answers, comments, and votes are closed.