Client

Tip

This is a global variable named Client. It is not possible to initialize or create a new instance. It’s just a global variable.

Note

This is a Client only Namespace.

Attention

This page is under construction.

Functions

Returns

Name

Description

Vector2D

GetMousePosition()

Gives the current mouse location

boolean

IsMouseEnabled()

boolean

IsKeyDown(string KeyName)

Returns if a key is being pressed

SetMouseEnabled(boolean)

Sets mouse enabled and toggles game input

SetDiscordActivity(string State, string Details, string LargeImage, string LargeText)

Comunicates with Discord and sets a custom user status

SetOutlineColor(Color OutlineColor)

Changes the Outline Color for interactable stuff. Multiply it by 5 (or more) for having a glowing effect.

Events

Note

The following events are Global Events. This gonna be changed soon.

Name

Parameters

Description

Tick

number DeltaTime

Called Every Frame. Do not abuse.

Console

string Text

Called when a console command is submitted

KeyUp

string KeyName

A keyboard key has been released

KeyDown

string KeyName

A keyboard key has been pressed / is being pressed

MouseUp

string KeyName, number MouseX, number MouseY

A mouse button has been released

MouseDown

string KeyName, number MouseX, number MouseY

A mouse button has been pressed / is being pressed

Examples

on("MouseUp", function(KeyName, MouseX, MouseY)
    if (KeyName == "LeftMouseButton")
        Package:Log("Left Click pressed at X: " .. MouseX .. ", Y: " .. MouseY)
    end
end)

Available Discord Images

Yeah naming is trash

Name

screenshot_137

screenshot_140

screenshot_141

screenshot_146

screenshot_148

screenshot_152

screenshot_152

screenshot_156

screenshot_157

screenshot_157

screenshot_159

screenshot_159

screenshot_164

screenshot_168

screenshot_173

screenshot_173

screenshot_175

screenshot_191

screenshot_191

screenshot_195