Script

Script : BaseScript

Overview

A script is an instance used to run server-side code.

When the Enabled property is set to true and the server-side script is placed in Workspace or ServerScriptService, it will run in a new thread.

A running script continues to run unless it is explicitly stopped or encounters a critical error. Errors that occur inside functions connected to events do not stop the script from running.

If the script itself or any of its ancestor Objects is fully removed using Destroy(), the script stops running. However, if the script's Parent is set to nil but the Object remains in memory, the script will continue to run.

Properties

Methods

Events

Last updated