Gamepass GUI appearing on PC but not mobile

I’m trying to make a settings GUI that allows you to change the colour of GUIs as long as you have the gamepass.

It works on PC but when I test it out on mobile it doesn’t appear. The GUI can fit on every device’s screen but it still is not appearing on my mobile device.

I’ve tried searching solutions up but nobody else has had this problem.

PC

Mobile

Here is the MarketPlaceService script:

local MPS = game:GetService("MarketplaceService")
local gamepass = 17668641

local function onJoin(player)
	if MPS:UserOwnsGamePassAsync(player.UserId, gamepass) then
		local Settings = game.ReplicatedStorage.Settings
		Settings.Parent = player.PlayerGui.Forum.TopBar
		Settings.Position = Vector2.new(0.56, 0,0.212, 0)
	end
end

game.Players.PlayerAdded:Connect(onJoin)
2 Likes

Also just to prevent people from asking this, yes I have published the game to Roblox and I joined on mobile right after I joined on PC.

2 Likes

Try using UDim2.new instead of Vector2.new.

2 Likes

Ah thanks I’m pretty new to UI so I thought that Vector2 would work.

2 Likes