Player
Variables
Functions
addMessage(text)
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)
sendMessage(text)Send message to server.
Returns:
(boolean) Return true if successfully.
Example Usage:
sendCommand(text)
sendCommand(text)Send command to server.
Returns:
(boolean) Return true if successfully.
Example Usage:
getName()
getName()Returns the player name.
Returns:
(string) Player name.
Example Usage:
getRotation()
getRotation()Returns the player rotation.
Returns:
(table) - Position table (yaw, pitch)
Example Usage:
setRotation(yaw, pitch)
setRotation(yaw, pitch)Returns the player rotation.
Parameters:
yaw(number) - Player yaw.pitch(number) - Player yaw.
Example Usage:
getPos()
getPos()Returns the player position.
Returns:
(table) - Position table (x, y, z)
Example Usage:
getLocation()
getLocation()Returns the player location.
Returns:
(string) Player location.
Example Usage:
getPurse()
getPurse()Returns the player purse.
Returns:
(number) Player purse.
Example Usage:
getHealth()
getHealth()Returns the player health.
Returns:
(number) Player health.
Example Usage:
getMaxHealth()
getMaxHealth()Returns the player max health.
Returns:
(number) Player max health.
Example Usage:
getMana()
getMana()Returns the player mana.
Returns:
(number) Player mana.
Example Usage:
getMaxMana()
getMaxMana()Returns the player max mana.
Returns:
(number) Player max mana.
Example Usage:
getDefence()
getDefence()Returns the player defence.
Returns:
(number) Player defence.
Example Usage:
getSpeed()
getSpeed()Returns the player speed.
Returns:
(number) Player speed.
Example Usage:
getAir()
getAir()Returns the player oxygen.
Returns:
(number) Player oxygen.
Example Usage:
getMaxAir()
getMaxAir()Returns the player max oxygen.
Returns:
(number) Player max oxygen.
Example Usage:
getCold()
getCold()Returns the player cold in glacite tunnels.
Returns:
(number) Player cold.
Example Usage:
isSneaking()
isSneaking()Returns the player is sneaking.
Returns:
(boolean) is player sneaking.
Example Usage:
isSprinting()
isSprinting()Returns the player is sprinting.
Returns:
(boolean) is player sprinting.
Example Usage:
isOnGround()
isOnGround()Returns the player is on ground.
Returns:
(boolean) is player on ground.
Example Usage:
isOnSkyBlock()
isOnSkyBlock()Returns the player is on skyblock.
Returns:
(boolean) is player on skyblock.
Example Usage:
Returns scoreboard lines.
getScoreBoardLines()
getScoreBoardLines()Returns:
(table) list of lines.
Example Usage:
getTab()
getTab()Returns:
(table) list of lines.
Example Usage:
getEyePosition()
getEyePosition()Returns player eye position.
Returns:
(table) eye position (x, y, z).
Example Usage:
addToast(title, description, time)
addToast(title, description, time)Returns player eye position.
Parameters:
title (string)
description (title)
time (number milliseconds)
Example Usage:
getLookEndPos(number)
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)
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)
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
(table) (type, entityData) Result of raycast.
Example Usage:
Last updated