retrostudio
The retrostudio
library has been made to replicate the function of Visual Scripting blocks that do not correspond to any meaningful category (Misc section in the Misc tab in the block code editor).
Descriptions have been copied from their respective blocks.
InsertModel(ID: number, Parent: object) -> Success, LoadedModel
Loads the model from its retrostudio id. The success output returns true or false based on whether or not it successfully loads. If success is true and LoadedModel is nil then there was no model at that id. Loading blocks may only be used 5 + (5 * number of players) times per minute.
IsGameLoaded() -> Answer
Returns a bool based on whether or not the game has loaded.
GetRobloxVersion() -> Answer
Returns the time era of this place.
IsStudio() -> Answer
Returns a bool based on whether or not this script is running in studio.
IsPlayingSolo() -> Answer
Returns a bool based on whether or not this script is running in a solo game server.
IsGuest(Player: object) -> Answer
Returns a bool based on if a player is a guest or not.
IsTouchscreen() -> Answer
Detects if the game is running on a touchscreen device.
OsTime() -> Answer
Returns the real world time in seconds.
OsClock() -> Answer
Returns the amount of CPU time used in seconds. This is high precision and can be used for benchmarking.
OsDate(Time: number, Timezone: string) -> DateTable
Returns date/time information based on the given time, Timezone must either be '*t' (local time) or '!*t' (UTC time | Default)
IsFriendsWith(Player: object, UserId: number) -> Result
Returns a bool based on if a player is friends with another player.
IsInGroup(Player: object, GroupId: number) -> Result
Returns a bool based on if a player is in a certain group or not.
GetRankInGroup(Player: object, GroupId: number) -> Result
Returns the rank the user holds in a group.
GetStudioSelection() -> Selection
Returns a table of everything selected in studio. This is for plugins and should not be used in game.
ReloadPlace()
Reloads the place (Does not work in Studio), same function as the '!reloadplace' command.
InsertRetrostudioAvatar(ID: number, CFrame: CFrame) -> Model
Inserts a player's RetroStudio Avatar.
GetServerTimeNow() -> Answer
Returns the server epoch time in seconds.
DumpMemory()
Prints the scripts entire memory table. Useful for advanced debugging.
Last updated