Created
February 26, 2021 19:27
-
-
Save Shigetorum635/2acb34e4e2d62b38d6884e016ee0e55a to your computer and use it in GitHub Desktop.
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
-- Compiled with roblox-ts v1.0.0-beta.16 | |
local TS = require(game:GetService("ReplicatedStorage"):WaitForChild("rbxts_include"):WaitForChild("RuntimeLib")) | |
local a = { | |
doSomething = TS.async(function(req) | |
if req ~= "lol" and req == "owo" then | |
return false | |
else | |
repeat | |
local _0 = false | |
if req == "owo" then | |
TS.await(print("its owo")) | |
break | |
end | |
if req == "notyou" then | |
TS.await(print("ok")) | |
break | |
end | |
if req == "fycj" then | |
print("ok") | |
req = "owo" | |
end | |
until true | |
end | |
end), | |
doAnotherThing = TS.async(function() | |
do | |
local _0 = 0 | |
while _0 < 10 do | |
local i = _0 | |
do | |
local _1 = 0 | |
while _1 < _0 do | |
local _a = _1 | |
print(tostring(_a) .. ", so cool! :D") | |
_1 = _a | |
_1 += 1 | |
end | |
end | |
print("OH GOD I = " .. tostring(i)) | |
_0 = i | |
_0 += 1 | |
end | |
end | |
end), | |
} | |
return { | |
a = a, | |
} |
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
export { a }; | |
const a = { | |
doSomething: async (req: string) => { | |
if (req !== "lol" && req === "owo") { | |
return false; | |
} else { | |
switch (req) { | |
case "owo": | |
await print("its owo"); | |
break; | |
case "notyou": | |
await print("ok"); | |
break; | |
case "fycj": | |
print("ok"); | |
req = "owo"; | |
} | |
} | |
}, | |
doAnotherThing: async () => { | |
for (let i = 0; i < 10; i++) { | |
for (let _a: number = 0; _a < i; _a++) { | |
print(`${_a}, so cool! :D`); | |
} | |
print(`OH GOD I = ${i}`); | |
} | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment