Skip to content

customality/hexus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Hexus API Functions

Functions exclusive to Hexus. They cannot be accessed through Roblox LocalScripts. This list is incomplete and does not include all the functions in Hexus!

getrawmetatable

Gets an object's metatable. Equivalent to getmetatable, except it ignores the __metatable field.

local mt = getrawmetatable(game)
print(mt)

setrawmetatable

Sets an object's metatable. Equivalent to setmetatable, except it ignores the __metatable field.

setrawmetatable(game, {})

printconsole

Prints a message to Hexus' console tab.

printconsole("Hello, World!")

getgenv

Gets Hexus' environment table.

local hexus_env = getgenv()

getrenv

Gets Roblox' environment table.

local roblox_env = getrenv()

getreg

Gets the registry table.

local reg = getreg()

setreadonly

Sets the read-only property of a table to either true or false.

local t = {}
setreadonly(t, true) --lock table

checkcaller

Checks if the caller function is a function made by Hexus.

local is_hexus = checkcaller()

loadstring

Attempts to compile a string and returns the function or nil and the error.

local f, err = loadstring("print('Hello, World!')")
if err then
	print(err)
else
	f()
end

setclipboard

Sets the clipboard content

setclipboard("Hello, Clipboard!")

mouse1press

Presses the left mouse button.

mouse1press()

mouse1release

Releases the left mouse button.

mouse1release()

mouse2press

Presses the right mouse button.

mouse2press()

mouse2release

Releases the right mouse button.

mouse2release()

keypress

Presses a key.

keypress(65) --press 'a' key

keyrelease

Releases a key.

keyrelease(65) --release 'a' key

debug.getmetatable

Similar to getrawmetatable, but works on all value types.

local mt = debug.getmetatable(function() end)
local mt = debug.getmetatable("Hello, World!")

debug.setmetatable

Similar to setrawmetatable, but works on all value types.

debug.setmetatable("", {__index = function() return "hi" end})
print(("").IndexingWithSomeRandomKey)

debug.setupvalue

Sets an upvalue for a function

debug.setupvalue(f, "name", "value")

debug.getupvalue

Gets an upvalue in a function

print(debug.getupvalue(f, "name"))

debug.getupvalues

Returns a table containing all upvalues of the function

table.foreach(debug.getupvalues(f), print)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published