Advertisement
PercentBowl

GunSpawn prison Life

Feb 17th, 2020
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local market_service = game:GetService("MarketplaceService")
  3. local pass = market_service:UserOwnsGamePassAsync(Player.UserId, 96651)
  4. local handler_remote = workspace.Remote.ItemHandler
  5. local giver = workspace.Prison_ITEMS.giver
  6.  
  7. for index,gun in pairs(giver:GetChildren()) do
  8.         if tostring(gun) == "Remington 870" or tostring(gun) == "M9" or tostring(gun) == "AK-47" then
  9.                 handler_remote:InvokeServer(gun.ITEMPICKUP)
  10.         elseif (tostring(gun) == "M4A1" or tostring(gun) == "Riot Shield") and pass then
  11.                 handler_remote:InvokeServer(gun.ITEMPICKUP)
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement