Advertisement
Moses_Gaming_Studio

Roblox Studio Gamepass Script

Nov 29th, 2020
702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local MPS = game:GetService("MarketplaceService")
  2. local gamepassid = -- Gamepass ID
  3.  
  4. MPS.PromptGamePassPurchaseFinished:Connect(function(player, id, suscess)
  5. if suscess == true and id == gamepassid thrn
  6. game.ServerStorage.ClassicSword:Clone().Parent = player.Backpack
  7. end
  8. end)
  9.  
  10. game.Players.PlayerAdded:Connect(function(plr)
  11. if MPS:UserOwnsGamePassAsync(player.UserId,gamepassid) then
  12. game.ServerStorage.ClassicSword:Clone().Parent = plr.Backpack
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement