Advertisement
vendaskOfficial

Fixed Item Game Pass Giver

Sep 29th, 2018
5,592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. --by 115vandsk
  2.  
  3. game.Players.PlayerAdded:connect(function(player)
  4.     if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userId, gamepassidhere) then
  5.         if player.Backpack:FindFirstChild("itemnamehere") == nil and player.Character:FindFirstChild("itemnamehere") == nil then
  6.             print(player.Name .. " got an item!")
  7.             local b = game.Lighting:FindFirstChild("itemnamehere"):Clone() -- gives item instantly
  8.             b.Parent = player.Backpack
  9.             local b2 = game.Lighting:FindFirstChild("itemnamehere"):Clone() --gets item when you die
  10.             b2.Parent = player.StarterGear
  11.         end
  12.     end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement