Advertisement
Sungmingamerpro13

GiveTools Gamepasss

Aug 15th, 2022
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local MarketPlaceService = game:GetService("MarketplaceService")
  2. local GamepassTools = game.ReplicatedStorage:FindFirstChild("Gamepasses")
  3.  
  4. local function GiveTool(Player, ID, Tool)
  5. if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, ID) then
  6. Tool:Clone().Parent = Player.Backpack
  7. Tool:Clone().Parent = Player.StarterGear
  8. end
  9. end
  10.  
  11. game.Players.PlayerAdded:Connect(function(Player)
  12. GiveTool(Player, 0, GamepassTools:FindFirstChild("Flashlight"))
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement