Set a property on a live Instance
set-instance-propertyWrites a property on a live Roblox Instance resolved from Luau, returning old and new values for auditing. Use it to change WalkSpeed, Visible, Transparency, or Value while debugging.
Instructions
WRITES LIVE GAME STATE. Resolve a Luau expression to an Instance and assign one of its properties, returning both the OLD and NEW value so the change is auditable. Common uses while debugging: toggle a GUI's Visible, bump a character's Humanoid WalkSpeed/JumpPower, set a part's Transparency/Anchored/CanCollide, or write an IntValue/StringValue's Value. For non-primitive property types (Vector3, CFrame, Color3, UDim2, Enum, Instance references) use value.kind='raw' and pass a Luau expression. The read of the old value and the write are each pcall-guarded. WARNING: this mutates the running game on the client — the change takes effect immediately and may replicate. Returns { Path, Property, OldValue, NewValue, ok } or { error }. Signature: { instancePath: string, propertyName: string, value: { kind: "string" | "number" | "boolean" | "nil" | "raw", value: string | number | boolean? }, threadContext: number? }. Phase: act; cost=medium; idempotency=idempotent-write. Requires: active-client, resolved-target, explicit-mutation-approval. Produces: operation-receipt. Verify with: get-instance-properties. Safety: MUTATING; writes live game/client state. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The new value to write, expressed as a typed argument. | |
| instancePath | Yes | Luau expression resolving to the Instance to modify, e.g. 'game.Players.LocalPlayer.Character.Humanoid', 'game.Workspace.Part', or 'game:GetService("StarterGui")'. Evaluated as `return <instancePath>`. | |
| propertyName | Yes | The exact property name to write, e.g. 'WalkSpeed', 'Visible', 'Transparency', 'Anchored', 'Value', 'Position', 'BrickColor'. Case-sensitive. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |