Facebook
From Diminutive Giraffe, 2 Years ago, written in JavaScript.
This paste is a reply to Untitled from Fiery Stork - view diff
Embed
Download Paste or View Raw
Hits: 150
  1. for _, k in pairs(game.Players:GetChildren()) do
  2. print(k.Name)
  3. print("------------------------------------")
  4. for _, v in pairs(k["MAIN_DATA"].Codes:GetChildren()) do
  5. print(v.Value)
  6. local ohString1 = "Codes"
  7. local ohString2 = "Redeem"
  8. local ohTable3 = {
  9. ["Code"] = v.Value,
  10. }
  11.  
  12. game:GetService("ReplicatedStorage").Replicator:InvokeServer(ohString1, ohString2, ohTable3)
  13. end
  14. endfor _, k in pairs(game.Players:GetChildren()) do
  15. print(k.Name)
  16. print("------------------------------------")
  17. for _, v in pairs(k["MAIN_DATA"].Codes:GetChildren()) do
  18. print(v.Value)
  19. local ohString1 = "Codes"
  20. local ohString2 = "Redeem"
  21. local ohTable3 = {
  22. ["Code"] = v.Value,
  23. }
  24.  
  25. game:GetService("ReplicatedStorage").Replicator:InvokeServer(ohString1, ohString2, ohTable3)
  26. end
  27. end