Advertisement
16LHLH

GamePass Script

May 7th, 2023
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | Gaming | 0 0
  1. local Players = game:GetService("Players")
  2. local MarketPlaceService = game:GetService("MarketplaceService")
  3. local GamepassID = ID-- Change this ID to your Gamepass ID
  4. local ToolName = "YourToolName" -- Change YourToolName to whatever you tool is called
  5.  
  6. Players.PlayerAdded:Connect(function(player)
  7. player.CharacterAdded:Connect(function(character)
  8. if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassID) then
  9. script[ToolName]:Clone().Parent = player.Backpack
  10. end
  11. end)
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement