Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").LocalPlayer
- local market_service = game:GetService("MarketplaceService")
- local pass = market_service:UserOwnsGamePassAsync(Player.UserId, 96651)
- local handler_remote = workspace.Remote.ItemHandler
- local giver = workspace.Prison_ITEMS.giver
- for index,gun in pairs(giver:GetChildren()) do
- if tostring(gun) == "Remington 870" or tostring(gun) == "M9" or tostring(gun) == "AK-47" then
- handler_remote:InvokeServer(gun.ITEMPICKUP)
- elseif (tostring(gun) == "M4A1" or tostring(gun) == "Riot Shield") and pass then
- handler_remote:InvokeServer(gun.ITEMPICKUP)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement