PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Error

Fired when an error occurs.

Parameters

Name Type Default Description

Code Samples


ScriptContext.Error

When an error occurs, this example prints the name of the script that errored, the reason it errored, and a trace of the error.

game:GetService("ScriptContext").Error:Connect(function(message, trace, script)
	print(script:GetFullName().." errored!")
	print("Reason: "..message)
	print("Trace: "..trace)
end)

-- Another script in Workspace:

KILLEVERYONE()