Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local codes = {
- "KNIGHTY",
- "ENTO",
- "RELEASE"
- }
- local RemoteFunction = game:GetService("ReplicatedStorage").Packages.Knit.Services.CodeRedemptionService.RF.redeemCode
- local function redeemCode(code)
- local success, result = pcall(function()
- return RemoteFunction:InvokeServer(code)
- end)
- if success then
- print("Successfully redeemed code:", code)
- else
- warn("Failed to redeem code:", code, "Error:", result)
- end
- end
- for _, code in ipairs(codes) do
- redeemCode(code)
- wait(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement