Skip to main content
Read-only getters for what the legitbot is doing this frame. Every call returns the current value the moment you call it.
CallReturnsWhat it tells you
getTarget(){ player, part?, hitbox? }?Who the aim is locked on right now. nil if nothing.
getTriggerTarget(){ player, part?, hitbox? }?Who the triggerbot is currently lined up on.
getValidTargets(){ TargetSnapshot }Everyone the legitbot considers a valid target this frame: already accounts for team, FOV, hitbox limits, and your own filters.
getActiveScope()stringThe current settings scope (e.g. "weapon:ak47", "group:rifle", or "global").
getResolvedValue(key, scopeId?)anyThe legitbot’s current value for a setting, respecting any per-weapon overrides. Use this instead of reading the raw slider with api.ui.find, which only gives you the global value; this gives you what the bot actually uses.
isFiring()booleantrue if the triggerbot has fired in the last ~100ms.
getBurstRemaining()number?How many shots are left in a current burst, or nil if not in a burst.
getLastShotTime()number?os.clock() of the last triggerbot shot.
See TargetSnapshot for the table getValidTargets() returns.

Signals

Influence