Functions
This page lists all the global functions that you can use with localscripts in the script builder.
print(...: any): void
Prints into the script builder output instead of the Roblox one. If the format printing setting is enabled then it will format the message with repr.
warn(...: any): void
Warns into the script builder output instead of the Roblox one. If the format printing setting is enabled then it will format the message with repr.
error(message: any, level: number?): void
Throws an error, if the format printing setting is enabled then it will format the message with repr. Script errors are automatically caught by the script builder and outputted into your output.
printf
printf(...: any): void
Prints into the script builder output with richtext enabled, ignoring the format printing setting. Useful if you want to print information to the user into the output.
warnf
warnf(...: any): void
Warns into the script builder output with richtext enabled, ignoring the format printing setting. Useful if you want to warn information to the user into the output.
printidentity(prefix: string?): void
Exactly like printidentity on Roblox but will always print identity 2, and outputs into the script builder output.
This is a deprecated Roblox function, and should not be used in new work. It's just added for compatibility.
require(): never
This function is disabled on client.
loadstring(contents: string, chunkname: string?): (((...) -> any)?, string?)
A reimplementation of Roblox's loadstring function on client.
LoadLibrary
LoadLibrary(library: string): any
A reimplementation of Roblox's LoadLibrary feature which was removed.
This is a removed Roblox function, and should not be used in new work. It's just added for compatibility.
NewScript
NewScript(source: string, parent: Instance?, ...any): Script
Creates and returns a new Script with the specified source under the specified parent, with optional run arguments.
NS
Alias for NewScript.
NewLocalScript
NewLocalScript(source: string, parent: Instance?, ...any): LocalScript
Creates and returns a new LocalScript with the specified source under the specified parent, with optional run arguments.
NLS
Alias for NewLocalScript.
Last updated