Skip to main content

1.2.16 — Example project updated to real-world patterns

What changed

layout.rblua — full WindUI config out of the box

New projects now get all WindUI layout options pre-filled with working defaults, so nothing needs to be re-added manually:

layout {
title = SCRIPT_NAME,
author = SCRIPT_AUTHOR,
toggle_key = "RightControl",
size = { 850, 560 },
ui_library = "windui",
theme = "Indigo",
icon = "code-2",
folder = "MyScript", -- executor save folder (auto-named from project)
notify_title = SCRIPT_NAME,
transparency = 0.8,
acrylic = true,
open_button_mobile_only = true,
open_button_icon = "code-2",
themes = { ... },
compat_exclude = { ... },
}

folder and notify_title are automatically set to the project name on rb init. author pulls from the SCRIPT_AUTHOR variable in globals.lua.

Example components — real patterns

All three example components (SpeedHack, FOVChanger, PlayerESP) now demonstrate the patterns used in every real component:

  • Pulse.Notify.onToggle in init {} — auto on/off toasts on every toggle
  • Pulse.Log.info/trace — structured logging on state changes
  • Pulse.Loop.new in PlayerESP — managed repeating loop with clean stop/start

globals.lua — Pulse.Monitor for team and player count

The template globals.lua now tracks team and player count in the dev overlay from the start:

Pulse.Monitor.set("team", _LP.Team and _LP.Team.Name or "none")
_LP:GetPropertyChangedSignal("Team"):Connect(...)

_PS.PlayerAdded:Connect(function(p)
_playerSet[p] = true
Pulse.Monitor.set("players", n)
end)

These show up in the dev overlay monitor bar automatically when running rb build --dev.

Impact on existing projects

No runtime change. All updates are to rb init scaffolding only. To adopt in an existing project, copy the new fields from the layout template and add Pulse.Notify.onToggle calls to your component init {} blocks.