I made a gamepass for my groups game i woold like to add myself and my friend to our groups gamepass without needing to buy it. i already made a gamepass code i just want to add me and my friend to the list the code i use is
-- Checks For Gamepass Owned Then Makes Game.StarterGui.UI.Inventory.RadioInv Visible
local id = 7541316
game.Players.PlayerAdded:connect(function(player)
if local HasPass = Game:GetService("GamePassService"):PlayerHasPass(player, id) then
player:findFirstChild("StarterGui").UI.Inventory.RadioInv.Visible = true else player:findFirstChild("StarterGui").UI.Inventory.RadioInv.Visible = false
local x = Instance.new("Message",Workspace)
x.Text = player.Name .. (HasPass and " has" or " doesn't have").. " the game pass!"
wait(2)
x:Remove()
end
end)
-- Prompt
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer,7541316)
end)

3 comments
thanks it seems to work find
A'ight.
fine*