So this script is supposed to check if the person owns the gamepass, and if he owns the gamepass it will do the following... if the person does not own the gamepass it should ask to purchase.
What is happening, it is just asking to purchase instead even tough I own the gamepass.
local player = game.Players.LocalPlayer function Click() local id = 281057715 if game:GetService("GamePassService"):PlayerHasPass(player, id) then player.PlayerGui.ScreenGui.Extras.HorseColours.Visible = true player.PlayerGui.ScreenGui.Extras.TycoonColours.Visible = false player.PlayerGui.ScreenGui.Extras.Tracks.Visible = false else game:GetService("MarketplaceService"):PromptPurchase(player, id) end end script.Parent.MouseButton1Down:connect(Click)