ProtoSmasher Documentation

Base Environment
Debug
AES
Base64
Input
Bit
Hash
drawing
WebSocket
Drawing
Window

Base


Debug


AES


Base64


Input


Bit


Hash


drawing


WebSocket

Properties callback OnMessage(string Data) [writeonly]
callback OnConnect() [writeonly]
callback OnClose(int Code, string Reason) [writeonly]
callback OnFail(string Reason) [writeonly]

void ConnectToServer()
void Close(int Code, string Reason)

string Status
Example Code local ws = WebSocket.new("ws://echo.websocket.org") ws.OnMessage = function(Data) print("received", Data) end ws.OnConnect = function() print("connected") ws:Send("ProtoSmasher rocks!") end ws.OnClose = function(Code, Reason) print("closed, code:", Code, "reason:", Reason) end ws.OnFail = function(Reason) print("failed to connect, reason:", Reason) end ws:ConnectToServer() wait(2) ws:Close(1000, "normal close")

Expected output:

Drawing

Classes:

Base
Side note: every class inherits functions and properties from this class.
bool Visible
int ZIndex

void Remove()
Line Vector2 From
Vector2 To
Color3 Color
float Thickness
float Transparency
Text string Text
Vector2 Position
float Size
Color3 Color
bool Center
bool Outline
float Transparency
Vector2 TextBounds [readonly]
Rectangle Vector2 Position
Vector2 Size
Color3 Color
float Thickness
bool Filled
float Transparency
Circle Vector2 Position
float Radius
Color3 Color
float Thickness
bool Filled
float Transparency
int NumSides
Triangle Vector2 PointA
Vector2 PointB
Vector2 PointC
Color3 Color
float Thickness
bool Filled
float Transparency
Image string Uri
Vector2 Position
Vector2 Size [readonly]
bool Loaded
float Transparency
float ScaleFactor (this will update the Size property to reflect the scaled size)

Window

Classes:

Window void Remove()
variant AddElement(string Type)
Base
Side note: every class (except Window) inherits functions and properties from this class.
bool SameLine

void Remove()
Label
Button
TextInput
Checkbox
FloatSlider
IntSlider
VerticalSeparator
HorizontalSeparator
Dropdown
ColorPicker
List