Advertisement
4zx16

Tool Pad (Gamepass)

Dec 25th, 2021 (edited)
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || TOOL PAD (GAMEPASS) || ONLY CHANGE ID
  3. ]]
  4. local MPS = game:GetService("MarketplaceService")
  5. local id = 0
  6. local e = false
  7.  
  8. local function onTouched(hit)
  9.     local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  10.  
  11.     if player ~= nil then
  12.         if MPS:UserOwnsGamePassAsync(player.UserId, id) then
  13.             if e == false then
  14.                 e = true
  15.                 game.ReplicatedStorage.Name:Clone().Parent = player:WaitForChild("Backpack")
  16.                 wait(1)
  17.                 e = false
  18.             end
  19.         end
  20.     end
  21.     if not MPS:UserOwnsGamePassAsync(player.UserId, id) then
  22.         player.Character:BreakJoints()
  23.         MPS:PromptGamePassPurchase(player, id)
  24.     end
  25. end
  26. script.Parent.Touched:Connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement