4zx16

Gamepass Handler v2

Oct 28th, 2021 (edited)
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || GAMEPASS HANDLER v2 || ONLY MESS WITH ID AND THE TOOL'S NAME!
  3. ]]
  4. local MPS = game:GetService("MarketplaceService")
  5. local id = 0
  6. local ServerStorage = game:GetService("ServerStorage").Name
  7. local RS = game:GetService("ReplicatedStorage")
  8.  
  9. game.Players.PlayerAdded:Connect(function(plr)
  10.     if MPS:UserOwnsGamePassAsync(plr.UserId, id) then
  11.         ServerStorage:Clone().Parent = plr:WaitForChild("Backpack")
  12.         ServerStorage:Clone().Parent = plr:WaitForChild("StarterGear")
  13.     end
  14. end)
  15. RS.Give.OnServerEvent:Connect(function(plr)
  16.     ServerStorage:Clone().Parent = plr.Backpack
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment