How to have Scale as default instead of Offset?

Whenever I insert a new UI element into my Roblox game, it uses offset and not scale and this really messes things up for mobile. I am wondering if there is a way to have scale as my default and not offset whenever I create a new UI element.

Type this into the command bar. Open the command bar by doing view → command bar

game.StarterGui.DescendantAdded:Connect(function(Object) if Object:IsA("TextLabel") or  Object:IsA("TextBox") or Object:IsA("TextButton") or Object:IsA("Frame") or Object:IsA("ImageButton") or Object:IsA("ImageLabel") then Object.Size = UDim2.new(0.5,0,0.5,0) end end)
1 Like

You’re a lifesaver man. I have spent too much time doing it manually. I can also do many other things like remove the borders.

1 Like