Roblox Studio | Comment faire un GAMEPASS (Boutique robux) FR
Channel: GAMAKA
Date: 05/07/2021

mettre sa dans button buy (local script)


script.Parent.MouseButton1Click:Connect(function()
 game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer,19531082)
end)

mettre sa dans screen gui (local script )



local player = game.Players.LocalPlayer
local ownsGamepass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,19531082)

if ownsGamepass then
 local sword = game:GetService("ReplicatedStorage"):WaitForChild("Sword"):Clone()
 sword.Parent = player.Backpack
end