Start typing to search packages!
sot
By @flashyiii
Roblox
Mirrored from WallyObserver
Observer is a live state inspector for Roblox Studio. Your game code registers the data it wants to see, and the tool shows it in an in-game panel that updates live. Values that change flash, each value keeps a short history, numbers get sparklines, and you can switch between server and client data. It replaces using Attributes as a debugging surface.
Setup
Install the package with Wally and require it from wherever Wally puts it, for example ReplicatedStorage.Packages.Observer. Call Observer.init once on the server and once on the client. All settings are passed in here, and every field is optional:
local Observer = require(ReplicatedStorage.Packages.Observer)
Observer.init({
ToggleKey = Enum.KeyCode.F3,
RefreshRate = 10,
DefaultSide = "Server",
Theme = { Flash = Color3.fromRGB(255, 210, 90) },
})
You can register data before or after init. On the server, init creates the remote the panel uses. On the client, it binds the toggle key, which is F3 by default. The panel UI is built the first time the panel opens. See Config.lua for every setting and its default. If you pass a setting name the package doesn't know, it raises an error so typos show up right away.
Studio only
When the package is required, it checks once whether it is running in Studio. Outside Studio it returns a version of the API where every function does nothing and returns immediately. That version creates no Instances, remotes, connections or threads, and it keeps no reference to anything you pass in, so your tables can still be garbage collected. The API looks the same in both modes, so your code never needs its own IsStudio checks.
The package can't skip the work of building the arguments you pass. Lua evaluates arguments before the call happens. Pass references and getter functions, and avoid building new tables or strings on every call:
-- good: registered once; the tool reads the table and calls the getter itself
tab:Watch("Stats", stats)
tab:Getter("Position", function() return root.Position end)
-- avoid: builds a string and a table every frame, even in live servers
tab:Value("Info", { Hp = hp, Name = "Unit " .. id })
Tabs and entries
Observer.Tab(name, { Group = "Characters", Instance = model }) creates a tab. If a live tab with that name already exists, you get that tab back. The group is shown as a collapsible section in the tab list. When the linked Instance is destroyed, the tab is marked dead, keeps its last values on screen, and can be cleared from the panel or with Observer.ClearDead(). Registering the same name again replaces the dead tab with a new one. Tab names must be unique on their side, so add an id to tabs for things that share a name.
A tab holds three kinds of entries. Each call returns a handle with Set, SetHints, Rename and Remove. tab:Rename(name) and tab:Remove() work on the whole tab, and removing a tab removes all of its entries.
- Value:
tab:Value("State", "Idle")stores a value you update yourself withentry:Set(newValue). - Watch:
tab:Watch("Stats", stats)shows a table that the tool reads on its own. It appears as an expandable tree of any depth, and new keys appear automatically. - Getter:
tab:Getter("Position", fn)shows a function that the tool calls. If the function errors, the error is caught and shown in red next to the entry.
Every entry can take display hints: { Unit = "hp", Min = 0, Max = 100, Thresholds = { { At = 0, Color = red }, { At = 30, Color = yellow } } }. Min and Max draw a bar behind the value. Each threshold colours the value once it reaches At.
What it costs
The tool reads data only while the panel is open. It reads only the tab on screen and any pinned values, at RefreshRate times per second. Hidden tabs are never touched. Server data reaches the client through one remote. The server sends each viewer only what that viewer is looking at, and only the values that changed since its last update. The tab list and the trees build only the rows that are visible, and rows are reused as values change.
Example: one tab per character
local function OnSpawned(model: Model, stats: { [string]: any }, id: number)
local tab = Observer.Tab(model.Name .. " #" .. id, { Group = "Characters", Instance = model })
tab:Watch("Stats", stats)
tab:Getter("Position", function()
return model:GetPivot().Position
end)
end
Open the panel with F3, type part of a name in the search field to find a character, expand its stats, and pin the values you want to watch across tabs. The Example folder has a server script that spawns 200 test characters with changing stats, and a client script that registers client data. Together they exercise everything above.
Package Details
Install command (Click to copy)
Version
1.0.2
License
MIT
Safe for commercial use
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
