Skip to content

AddScript

Description

AddScript is a Function on Object
Adds a new Script Component to this Object with the given script name. If you are not the server, this will only run on local objects.

Example
Object.AddScript("Toaster")
Usage

network usage: Any (Client or Server/Host)
returns: None
parameters:
- scriptName (string)