global enviroment
firesignal
Fires all the connections connected to the signal Signal with Args.
firesignal(Signal, Args);
getsenv
Returns the global environment table of LocalScript script.
getsenv(localscript);
setrawmetatable
Sets o's metatable to mt even if the __metatable field exists in o's metatable
setrawmetatable(o, mt)
checkcaller
Returns true if the current thread is an Oxygen U thread.
Note: Checkcaller does NOT check the call stack of the function, if you call a game function then it calls out to checkcaller, the result will be true!
Be careful.
checkcaller();
queue_on_teleport
Executes code after player is teleported.
queue_on_teleport(code);
setsimulationradius
Sets the player's SimulationRadius. If MaxSimulationRadius is specified, it will set that as well.
setsimulationradius(simulationradius, maxsimulationradius);
gethwid
Returns the User's HWID, changes between PCs.
gethwid();
message
Creates a message box with parameters text
message(text);
setfflag
Sets FFlag with Value. Must be run before the game loads, auto execute recommended.
setfflag(FFlag, Value);
getinstances
Returns a list of all instances within the game.
getinstances();
getcallingscript
Gets the script that is calling this function.
getcallingscript();
firetouchinterest
Fakes a .Touched event to ToTouch with Part.
The Toggle argument must be either 0 or 1 (for fire/un-fire).
firetouchinterest(Part, ToTouch, Toggle);
getrenv
Returns the global environment for the LocalScript state.
getrenv();
newcclosure
Takes an lclosure (Lua function) and returns a new cclosure (C function).
This is commonly used when setting the metamethods of a Roblox userdata such as game.
newcclosure(lclosure);
RandomString
Return a random string with num length.
RandomString(num);
request
Sends a http request with parameters in options.
request(options);
readfile
Returns the content of the file.
readfile(file);
isluau
Returns a boolean that tells you whether a game has the new Luau VM enabled (true) or not (false).
Now that all games use Luau,
this function will always return true and just exists for legacy purposes.
isluau();
setnamecallmethod
Sets the current method name to name.
setnamecallmethod(name);
loadstring
Loads chunk as a Lua function with optional chunk_name and returns it if compilation is successful.
Otherwise, if an error has occurred during compilation, nil followed by the error message will be returned.
loadstring(chunk, chunk_name);
setthreadcontext
Sets the current thread’s context level to level.
setthreadcontext(level);
getthreadcontext
Returns the current thread’s security context level.
getthreadcontext();
mousescroll
Scrolls the mouse wheel virtually by px pixels.
mousescroll(px);
getnamecallmethod
Returns the namecall method if the function is called in an __namecall metatable hook.
getnamecallmethod();
hookfunction
Hooks function old, replacing it with the function hook.
The old function is returned, you must use this function in order to call the original function.
hookfunction(old, hook);
listfiles
Returns a table of files in folder.
listfiles(folder);
keyrelease
Releases key on the keyboard. You can access the key values from the link below.
https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
keyrelease();
keytap
Simulates a button tap for the specified keycode. Only works when roblox is focused.
keytap(keycode);
rconsoleinfo
Prints msg into the console, with a info text before it.
rconsoleinfo(msg);
rconsolename
Sets the currently allocated console title to title.
rconsolename(title);
getfpscap
Returns the fps cap.
getfpscap();
mouse1release
Simulates the left mouse button being released. Commonly used after calling mouse1press().
mouse1release();
fireproximityprompt
Fires the designated ProximityPrompt.
fireproximityprompt(Prompt, Distance);
randomstring
Return a random string with num length.
randomstring(num);
getnilinstances
Returns all the nil instances in the game.
getnilinstances();
islclosure
Returns true if f is an LClosure. Otherwise returns false.
islclosure(f);
rconsolewarn
Prints msg into the console, with a warning text before it.
rconsolewarn(msg);
mouse1click
Simulates the left mouse button being clicked one time.
mouse1click();
mouse2press
Clicks down on the right mouse button.
mouse2press();
sethiddenproperty
Sets the hidden property Property with Value from Object. Errors if the property does not exist.
sethiddenproperty(Object, Property, Value);
saveinstance
Saves the game as a roblox studio file, can be found in the workspace folder.
saveinstance();
gethiddenproperty
Returns the hidden property Property from Object. Errors if the property does not exist.
gethiddenproperty(object, property);
rconsoleclear
Clears the console.
rconsoleclear();
getgenv
Returns the environment that will be applied to each script ran by Oxygen U.
getgenv();
rconsoleprint
Prints message into the console. Does not supports colors.
rconsoleprint();
rconsoleerr
Errors message into the console.
rconsoleerr();
getgc
Returns a table containing Lua’s garbage collector.
getgc();
mousemoverel
Moves the mouse by x and y relative to the mouse’s current position.
Keep in mind that a positive y value moves the mouse down.
mousemoverel(x, y);
iscclosure
Returns a boolean that tells you if closure is a C closure (true) or a Lua closure (false)
iscclosure(closure);
keypress
Continuously presses the key indicated by keycode until keyrelease is called with the same keycode.
keypress(keycode);
setfpscap
Sets roblox's fps cap.
setfpscap();
mouse1press
Simulates a left mouse button press without releasing it.
mouse1press();
isrbxactive
Returns true if roblox is focused, otherwise returns false.
isrbxactive();
getconnections
Returns the functions connected to event as a table.
Each entry in the returned table is a table with Enable and Disable methods.
You can call those methods to enable/disable connections.
getconnections(event);
is_oxygen_function
returns true if f is an oxygen U function.
is_oxygen_function(f);
setreadonly
Sets t's readonly value to b.
setreadonly(t,b);
fireclickdetector
Simulates a click on ClickDetector d.
fireclickdetector(d);
mouse2release
Simulates the right mouse button being released. This is commonly used after calling mouse2press().
mouse2release();
getrawmetatable
Gets the metatable of table or userdata t and returns it without invoking __metatable and sets the readonly value of the
metatable to false.
getrawmetatable(t);
isreadonly
Returns t's read-only condition.
isreadonly(t);
mouse2click
Simulates the right mouse button being clicked one time.
mouse2click();
writefile
Writes data to a file called filename in the workspace folder.
If the file already exists, the file is overwritten. This function is restricted to the workspace folder.
writefile(filename, data);
getreg
Returns the Lua registry table.
getreg();
setclipboard
Copies data to the clipboard.
setclipboard(data);
debug library
getupvalues
Returns a table containing all of the upvalues at function or stack level f.
getupvalues(f);
getupvalue
Returns the upvalue at index idx in function or stack level f.
getupvalue(f, idx);
getconstants
Returns a table containing all of the constants at function or stack level f.
getconstants(f);
setmetatable
Retrieve the metatable of value irregardless of value's metatable's __metatable field. Returns nil if it doesn't exist.
setmetatable(val);
getprotos
Returns a table containing the protos (local functions) of function f.
getprotos(f);
getproto
Gets the proto (local function) at index index of function f.
If b is provided and set to true, a table is returned containing all instances of the local function at index index.
getproto(f, index, b);
getmetatable
Retrieve the metatable of value irregardless of value's metatable's __metatable field. Returns nil if it doesn't exist.
getmetatable(val);
profileend
Stops a profile created with debug.profilebegin.
profileend();
profilebegin
Starts a profiler under the label label.
profilebegin(label);
getconstant
Sets the constant at index idx in function or stack level f to value.
getconstant(f, idx, value);
traceback
Returns a string with a traceback of the call stack at level (stack level 1 if not provided).
You can also include a message to append to the start of the traceback with the message argument.
traceback(message, level);
getinfo
Returns a table containing the following information about the function:
+ source - The name of the script the function was defined in
+ what - Where the function originates from (Lua or C/C++)
+ func - The passed in function
+ short_src - The name of the script in a format that can be used in error messages
+ name - The name of the function
+ nups - The number of upvalues in the function
Although more information is given, that information is pointless since it has the same values for every function.
getinfo(f);
setupvalue
Sets the upvalue at index idx in function or stack level f to value.
setupvalue(f, idx, value);
setconstant
Sets the constant at index idx in function or stack level f to value.
debug.setconstant(f, idx, value);
getregistry
Returns the Lua registry table.
getregistry();
drawing library
Drawing.new
Creates a new drawing object with type. Returns the object.
Drawing.new(type);
Base properties
Notes:
+ All other classes derive from this base class.
+ Transparency is the opposite than on normal GUI elements - 1 means fully opaque, while 0 means fully transparent.
Visible;
Transparency;
Color;
Remove();
Types
Line
Thickness
From
To
Text
Text
Size
Center
Outline
OutlineColor
Position
(readonly) TextBounds
Image
Data
Size
Position
Rounding
Circle
Thickness
NumSides
Radius
Filled
Position
Square
Thickness
Size
Position
Filled
Quad
Thickness
PointA
PointB
PointC
PointD
Filled
Triangle
Thickness
PointA
PointB
PointC
Filled