Advertisement
4zx16

Insert Catalog Gear On Touch (Gamepass)

Nov 13th, 2021 (edited)
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || INSERT CATALOG GEAR ON TOUCH (GAMEPASS) || ONLY CHANGE ID AND GAMEPASS ID!
  3. ]]
  4. local epic = false -- :(
  5. local MPS = game:GetService("MarketplaceService")
  6. local IS = game:GetService("InsertService")
  7. local id = 0
  8. local gamepassId = 0
  9.  
  10. script.Parent.Touched:Connect(function(plr)
  11.     local player = game.Players:GetPlayerFromCharacter(plr.Parent)
  12.  
  13.     if player ~= nil and epic == false then
  14.         epic = true
  15.  
  16.         if MPS:UserOwnsGamePassAsync(player.UserId, gamepassId) then
  17.             IS:LoadAsset(id):GetChildren()[1].Parent = player:WaitForChild("Backpack")
  18.             wait(1)
  19.             epic = false
  20.         else
  21.             wait(0.9)
  22.             MPS:PromptGamePassPurchase(player, gamepassId)
  23.             epic = false
  24.         end
  25.     end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement