Help With Gui Resizer

so i am trying to make a gui resizer and scale guis differently on certain platforms.
problem is, when it runs, it doesnt resize it at all. any help?

local ismobile = game:GetService("UserInputService").TouchEnabled
local isdesktop = game:GetService("UserInputService").KeyboardEnabled

if ismobile then
	game.StarterGui.Index.Gooberdex.Size = UDim2.new(0.079, 0, 0.118, 0)
end

is this a local script if yes then do

local player = game:GetService("Players").LocalPlayer
local Gooberdex = player.PlayerGui.Index.Gooberdex
-- then you can do resize
Gooberdex.Size = ...

This is common mistake among beginners and that’s you’re trying to refer to StarterGui which is used by the server to clone anything inside of it and send it to the PlayerGui for every player that joins

1 Like

Gee thanks, I didnt know it was that simple!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.