Skip to content

Instantly share code, notes, and snippets.

@Exponential-Workload
Last active April 10, 2022 13:35
Show Gist options
  • Save Exponential-Workload/e1912f08188a4dcd1ba1572f36ab9998 to your computer and use it in GitHub Desktop.
Save Exponential-Workload/e1912f08188a4dcd1ba1572f36ab9998 to your computer and use it in GitHub Desktop.
Driving Empire Stuff
["BIRD100K","SPR1NGT1ME","VALENTINES","C4N4D4"]
-- Simple Code Redemption Script
-- get list of codes
local Codes = game:GetService('HttpService'):JSONDecode(game:HttpGetAsync('https://gist.githubusercontent.com/YieldingExploiter/e1912f08188a4dcd1ba1572f36ab9998/raw/codes.json'))
-- this is how we redeem codes
local RedeemCode = function(code)game:GetService("ReplicatedStorage").Remotes.Code:FireServer(code)end
local RedeemAll = function() for _,code in pairs(Codes) do RedeemCode(code) end end;
-- return
return setmetatable({},{
__call = RedeemAll;
__index = {
Codes = Codes;
Specific = RedeemCode;
All = RedeemAll;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment