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

ScriptContext.Error

ScriptContext.Error

Oct 01 2018, 2:09 AM PST

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()