io
write(...any)
Does not add spaces between args and does not output tables expanded.If TIMESTAMP is false, then it will not create a new line.
read():string
yields the thread until /input is given. Unlike lua this does not have any args.
You can also provide inputs in the code using --@<input> comments.
--@Hello, World!
local input = io.read()
print(input) --> Hello, World!
writefile(content: string|buffer, filename: string): boolean
This function makes it so the log file will output the content instead of the log history along with the file type specified. If file type is not supported then it will default to ansi. This will also trigger the file to be sent.
Supported file types:
"png",
"jpg",
"jpeg",
"gif",
"webp",
"svg",
"txt",
"ansi",
"lua",
"luau",
"json",
"xml",
"rbxm",
"html",
"css",
"js",
"md",
"csv",
"mp3",
"wav",
"ogg",
"mp4",
"webm"
writeimage(value: Image | {Image} | Instance, filename: string?, options: {}?): string
Writes an image file without converting it yourself, and returns the file name used.
- An
Imageis written as a.png. - A list of Images is written as a
.gif. Options:Delay(seconds per frame, or a list of them; default0.1),Loop(0loops forever). - An Instance (
workspace, a model, a ScreenGui, ...) is rendered withImage.fromInstancefirst;optionsare passed to it. - A recording from
Image.recordis written as a.gif. An Instance is recorded first ifoptionshasDurationorFrameRate.
The extension is added if filename doesn't have one; the default name is image.
In the playground, an image named screen (or screen2, screen3, ...) opens in a live window over the editor that updates each time it's written. Drag any image from the output files onto the editor to open it.
io.writeimage(workspace, "scene", { Size = Vector2.new(320, 180) })
import(url:string):Instance
Builds a GitHub repository or a Wally package into an Instance.
github.com/<owner>/<repo>: buildsdefault.project.json, orsrc/if there isn't one..../tree/<branch>/<path>or.../blob/<branch>/<path>: builds that folder or file..../releases/download/<tag>/<file>.rbxmor.../releases/latest/download/<file>.rbxm(.rbxmxworks too)raw.githubusercontent.com/<owner>/<repo>/<branch>/<path>wally:<scope>/<name>@<version>
Only public repositories work, and a build is cached for 10 minutes. A repository can be up to 80 MB, with up to 5000 files (32 MB in all) and 4 MB per file.
Warning
Scripts don't run when imported
local Chrono = io.import("https://github.com/Parihsz/Chrono")
local api = require(Chrono)
Wally example:
local Knit = require(io.import("wally:sleitnick/knit@1.7"))
local Signal = require(io.import("https://wally.run/package/sleitnick/signal?version=2.0.1"))
readfile(file:string): (string,string)
reads a loaded file with write file and returns the content and the file type. If the file does not exist or is not loaded then it will return nil.
getoutput(): string
returns the current output log as a string
print("Hello, World!")
local output = io.getoutput()
print(output) --> "Hello, World!\n"
clearoutput()
Clears the output.