Utility Functions
Here is a list of the available functions used to assist script developers
juju.on_unload(callback: Function)
callback
Function
This function is called when the addon is unloaded
juju.create_connection(signal: RBXScriptConnection or Table, callback: Function)
signal
RBXScriptSignal or table (custom signals)
The signal to connect the callback to
callback
Function
The function to connect to the signal
RBXScriptSignal or table (custom signals)
Signal object, can use :Disconnect etc
juju.find_element(section: String, feature: String)
Table
An element, like given from create_element
juju.get_flags()
Table
A table holding the names of all juju flags
juju.get_flag(flag: String)
Any
The value of the flag given
juju.set_flag(flag: String, value: Any)
None
N/A
juju.get_signals()
Table
A table holding the names of all juju signals
juju.get_signal(name: String)
Table / RBXScriptSignal
The found signal
juju.create_notification(text: String, type: Number, time: Number)
text
String
The text that will be displayed over the notification
type
Number
The type of notification being sent, 1 = Success, 2 = Alert, 3 = Fail
time
Number
The amount of time the notification is on screen (0.5 - 7 seconds only)
juju.set_player_status(player: Instance (Player), status: Number)
player
Instance (Player)
The player that will have their status set
status
Number
The status the player is being set as, 1 = Neutral, 2 = Friendly, 3 = Enemy
juju.get_player_status(player: Instance(Player))
Number
The player's current status, 1 = Neutral, 2 = Friendly, 3 = Enemy
juju.get_active_keybinds()
Table
Example return result: {["silent aim"] = true, ["prediction"] = 1948.6923814}
juju.get_all_keybinds()
Table
Example return result: {["follow target"] = {Enum["KeyCode"]["V"], true}}
juju.load_config(name: String)
name
The name of the config, without the extension. default.cfg -> juju.load_config("default")
Last updated