# Sandbox.Script.LastError

```csharp
ScriptError LastError { get; set; }
```

The most recent failure, or null after a successful invocation.

Declared in [Sandbox.Script](/api/Sandbox.Script).
Assembly: `Sandbox.Engine`.
