How to make a Admin Gamepass [ROBLOX]
this is how to make a admin game pass in roblox studio Script📃: script.Parent.MouseButton1Click:Connect(function() local MarketplaceService = game:GetService("MarketplaceService") local id = local hasgamepass local player = game.Players.LocalPlayer local success, message = pcall(function() hasGamepass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, id) end) if hasGamepass then local char = player.CharacterAdded:Wait() local hum = char:WaitForChild("Humanoid") else MarketplaceService:PromptGamePassPurchase(player, id) end end) MyGroup🏠:https://www.roblox.com/groups/15638256/Orange-Cone-Productions MyAvatar😁:https://www.roblox.com/users/3171213335/profile MyDiscord:https://discord.gg/J374SGxQ
this is how to make a admin game pass in roblox studio Script📃: script.Parent.MouseButton1Click:Connect(function() local MarketplaceService = game:GetService("MarketplaceService") local id = local hasgamepass local player = game.Players.LocalPlayer local success, message = pcall(function() hasGamepass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, id) end) if hasGamepass then local char = player.CharacterAdded:Wait() local hum = char:WaitForChild("Humanoid") else MarketplaceService:PromptGamePassPurchase(player, id) end end) MyGroup🏠:https://www.roblox.com/groups/15638256/Orange-Cone-Productions MyAvatar😁:https://www.roblox.com/users/3171213335/profile MyDiscord:https://discord.gg/J374SGxQ