Yuari
Documentation
Docs/Services

Services

Lightweight service shims pumped by the external tick loop.

Frame signals that fire every tick with the delta time. Use in a loop with task.wait().

RunService.Heartbeat:Connect(function(dt)
    -- runs every frame
end)

Fire with an input object { KeyCode = { Name, Value }, UserInputType = { Name } }.

UserInputService.InputBegan:Connect(function(input)
    print(input.KeyCode.Name, input.UserInputType.Name)
end)

Cursor position in client space.

local mouse = UserInputService.GetMouseLocation()
print(mouse.X, mouse.Y)

State queries — accepts the same key formats as iskeypressed.

print(UserInputService.IsMouseButtonPressed(1))
print(UserInputService.IsKeyDown("f"))

Virtual input shims for UI automation.

VirtualInputManager.SendMouseMoveEvent(100, 100)
VirtualInputManager.SendKeyEvent(0x41, true)

Anti-AFK helpers. ClickButton1 takes a Vector2 or x, y.

VirtualUser.CaptureController()
VirtualUser.ClickButton1(Vector2.new(100, 100))

Compatibility shim returning a table with Play, Cancel, Pause, Destroy and a Completed signal.

local part = Instance.new("Part")
local tween = TweenService.Create(part, { Transparency = 1 })
tween.Completed:Connect(function()
    print("tween finished")
end)
tween:Play()

Full bit32 library: band, bor, bxor, bnot, lshift, rshift, arshift, lrotate, rrotate, extract, replace, btest, countlz, countrz, byteswap.

print(bit32.band(0xFF, 0x0F), bit32.lshift(1, 8))
print(bit32.btest(8, 12), bit32.countlz(1), bit32.byteswap(0x12345678))

Virtual-key code tables for input functions, with :GetEnumItems() and :FromValue(v) item helpers.

  • KeyCode — Space, Tab, Escape, Return/Enter, Backspace, arrow keys, navigation keys, punctuation, LeftShift/RightShift, LeftControl/RightControl, LeftAlt/RightAlt, letters A–Z, digits 0–9, F1–F12.
  • UserInputType — MouseButton1 (1), MouseButton2 (2), MouseButton3 (3), Keyboard (8), Touch (9), Gamepad1–Gamepad8 (10–17), TextInput (18), InputMethod (19).
print(Enum.KeyCode.F)                  -- 70
print(Enum.KeyCode:FromValue(70).Name) -- F
print(Enum.UserInputType.MouseButton1) -- 1