Last active
April 10, 2022 13:35
-
-
Save Exponential-Workload/e1912f08188a4dcd1ba1572f36ab9998 to your computer and use it in GitHub Desktop.
Driving Empire Stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["BIRD100K","SPR1NGT1ME","VALENTINES","C4N4D4"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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