Player

Variables

Functions

addMessage(text)

Add message to chat.

Returns:

  • (boolean) Return true if successfully.

Example Usage:

-- Example code showing how to use the function
player.addMessage("Hypixel Cry - Only me see this")

sendMessage(text)

Send message to server.

Returns:

  • (boolean) Return true if successfully.

Example Usage:

sendCommand(text)

Send command to server.

Returns:

  • (boolean) Return true if successfully.

Example Usage:

getName()

Returns the player name.

Returns:

  • (string) Player name.

Example Usage:

getRotation()

Returns the player rotation.

Returns:

  • (table) - Position table (yaw, pitch)

Example Usage:

setRotation(yaw, pitch)

Returns the player rotation.

Parameters:

  • yaw (number) - Player yaw.

  • pitch (number) - Player yaw.

Example Usage:

getPos()

Returns the player position.

Returns:

  • (table) - Position table (x, y, z)

Example Usage:

getLocation()

Returns the player location.

Returns:

  • (string) Player location.

Example Usage:

getPurse()

Returns the player purse.

Returns:

  • (number) Player purse.

Example Usage:

getHealth()

Returns the player health.

Returns:

  • (number) Player health.

Example Usage:

getMaxHealth()

Returns the player max health.

Returns:

  • (number) Player max health.

Example Usage:

getMana()

Returns the player mana.

Returns:

  • (number) Player mana.

Example Usage:

getMaxMana()

Returns the player max mana.

Returns:

  • (number) Player max mana.

Example Usage:

getDefence()

Returns the player defence.

Returns:

  • (number) Player defence.

Example Usage:

getSpeed()

Returns the player speed.

Returns:

  • (number) Player speed.

Example Usage:

getAir()

Returns the player oxygen.

Returns:

  • (number) Player oxygen.

Example Usage:

getMaxAir()

Returns the player max oxygen.

Returns:

  • (number) Player max oxygen.

Example Usage:

getCold()

Returns the player cold in glacite tunnels.

Returns:

  • (number) Player cold.

Example Usage:

isSneaking()

Returns the player is sneaking.

Returns:

  • (boolean) is player sneaking.

Example Usage:

isSprinting()

Returns the player is sprinting.

Returns:

  • (boolean) is player sprinting.

Example Usage:

isOnGround()

Returns the player is on ground.

Returns:

  • (boolean) is player on ground.

Example Usage:

isOnSkyBlock()

Returns the player is on skyblock.

Returns:

  • (boolean) is player on skyblock.

Example Usage:

Returns scoreboard lines.

getScoreBoardLines()

Returns:

  • (table) list of lines.

Example Usage:

getTab()

Returns:

  • (table) list of lines.

Example Usage:

getEyePosition()

Returns player eye position.

Returns:

  • (table) eye position (x, y, z).

Example Usage:

addToast(title, description, time)

Returns player eye position.

Parameters:

  • title (string)

  • description (title)

  • time (number milliseconds)

Example Usage:

getLookEndPos(number)

Returns player eye end position.

Parameters:

  • distance (number) - Distance from the player's view.

Returns:

  • (table) eye end position (x, y, z).

Example Usage:

getLookEndPos(table)

Returns player eye end position.

Parameters:

  • table (x, y, z) - Table with end point coordinates.

Returns:

  • (table) eye end position (x, y, z).

Example Usage:

raycast(number)

Returns raycast result from eye.

Parameters:

  • number - Raycast distances from eyes.

Returns:

Global

  • (table) Result of raycast.

If block

  • (table) (type, x, y, z) Result of raycast.

If entity

Example Usage:

Last updated