Advertisement
Vortex23

CodesSWR

Jul 19th, 2024 (edited)
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. local codes = {
  2.     "KNIGHTY",
  3.     "ENTO",
  4.     "RELEASE"
  5. }
  6.  
  7. local RemoteFunction = game:GetService("ReplicatedStorage").Packages.Knit.Services.CodeRedemptionService.RF.redeemCode
  8.  
  9. local function redeemCode(code)
  10.     local success, result = pcall(function()
  11.         return RemoteFunction:InvokeServer(code)
  12.     end)
  13.    
  14.     if success then
  15.         print("Successfully redeemed code:", code)
  16.     else
  17.         warn("Failed to redeem code:", code, "Error:", result)
  18.     end
  19. end
  20.  
  21. for _, code in ipairs(codes) do
  22.     redeemCode(code)
  23.     wait(0.5)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement