Advertisement
drakon-firestone

Untitled

Dec 29th, 2023
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. remotes:WaitForChild("UseCode").OnServerInvoke = function(player,code)
  2. if codes[tostring(code)] then
  3. if player.Codes then
  4. if type(codes) == "table" then
  5. if player.Codes:FindFirstChild(tostring(code)) then
  6. return "Already"
  7. else
  8. if codes[tostring(code)][2] == true then
  9. return "Expired"
  10. else
  11. codes[tostring(code)][1](player)
  12. if codes[tostring(code)][3] == false then
  13. local usedCode = Instance.new("StringValue", player.Codes)
  14. usedCode.Name = tostring(code)
  15. end
  16. return "Successfully"
  17. end
  18. end
  19. else
  20. return "Unknown"
  21. end
  22. else
  23. return "Unknown"
  24. end
  25. else
  26. return "Invalid"
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement