local G = 7542570 --< Gamepass id
game.Players.PlayerAdded:Connect(function(player)
game.Players.ChildAdded:Connect(function()
local Gam = game:GetService("MarketplaceService")
if Gam:UserOwnsGamePassAsync(player.userId , G) then
local NewButton = script.ChaosInsurgency:Clone()
NewButton.Parent = player.PlayerGui.MainMenu.TeamSelect.Teams
end
end)
end)
I run the game and the Chaos Insurgency Button does not end up where its meant to be when the player joins.
