Advertisement
Guest User

cbro script

a guest
Jul 16th, 2017
2,916
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. function AddSkin(UserId,Skin,OnlyOne)
  2. local Reward = true
  3. invenData:UpdateAsync(tostring(UserId), function(oldValue)
  4. local newValue = oldValue
  5. if not newValue then
  6. newValue = DefInven
  7. end
  8. --if OnlyOne then
  9.  
  10. for i=1, #newValue do
  11. --print("Checking ")
  12. if newValue[i] == Skin then
  13. Reward = false
  14. --print("Already exists")
  15. end
  16. end
  17. if Reward then
  18. table.insert(newValue,1,Skin)
  19.  
  20. end
  21. --end
  22. -- for key, value in pairs(newValue) do
  23. -- --print(key, "=", value)
  24. -- end
  25. --print("JOINED, Inventory length = "..#newValue)
  26. return newValue
  27. end)
  28. if Reward then
  29. local player = game.Players:GetPlayerByUserId(UserId)
  30. postdiscordfunction(player,"JUST REDEEMED THEIR GOLDEN KARAMBIT :OO","https://discordapp.com/api/webhooks/289170412984860672/bLVw9k9Jqe64H_31fhJTJdiLMc73gTrXMLKHVpYYNn2XSRlvssHKW3AfLcU5SHMzjhZV")
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement