Advertisement
luchitasin9

Gamepass Script

Aug 18th, 2022
519
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | Source Code | 1 0
  1. local MarketPlaceService = game:GetService("MarketplaceService")
  2. local Players = game:GetService("Players")
  3.  
  4. local Tool = script.Tool
  5. local GamepassID = script.GamepassID
  6.  
  7. Players.PlayerAdded:Connect(function(Player)
  8.     Player.CharacterAdded:Connect(function(Character)
  9.         if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId,GamepassID.Value) == true then
  10.             local NewTool = Tool.Value:Clone()
  11.             NewTool.Parent = Player.Backpack
  12.         end
  13.     end)
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement