For some reason, I get a error upon trying to change a size of a frame with a script. Neither of these work: UDim2 and UDim. So how can I change a size of a frame using a script if UDim/UDim2 won't work? Is it meant for position. Is there a UDim2/UDim meant specifically for the size property? Help? This is the code I'm using:
-- This code doesn't work --
game.StarterGui.ScreenGui.Frame.Size = UDim2(1, 0, 1, 0)
-- Neither does this work --
game.StarterGui.ScreenGui.Frame.Size = UDim(1, 0, 1, 0)

1 comment
use game.Players.localPlayer.PlayerGui.ScreenGui.Frame Players can see what happens in starter gui