Advertisement
RoScripter

Gamepass Tools Script

Jul 25th, 2020
23,581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. local MarketPlaceService = game:GetService("MarketplaceService")
  2.  
  3. local GamepassId = 1234567 -- REPLACE 1234567 WITH YOUR GAMEPASS ID
  4. local Tool = script.GravityCoil -- REPLACE GravityCoil WITH THE NAME OF YOUR TOOL
  5.  
  6. game.Players.PlayerAdded:Connect(function(Player)
  7.     Player.CharacterAdded:Connect(function(Character)
  8.         if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, GamepassId) then
  9.             local ToolClone = Tool:Clone()
  10.             ToolClone.Parent = Player.Backpack
  11.         end
  12.     end)
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement