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
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