BaseScript¶
Not to be confused with:
-
ScriptInstance (which runs your Lua scripts on the server.)
-
LocalScript (which runs your Lua scripts on the client.)
-
ModuleScript (which contains data accessible by any script.)
Abstract Object
This object exists only to serve as a foundation for other objects. It cannot be accessed directly, but its properties are documented below.
Additionally, it cannot be created in the creator menu or with Instance.New()
BaseScripts are the base classes of all scripts (ScriptInstances, LocalScripts). They can be parented to any instance.
Inherits Instance
Methods¶
Call → void
¶
Parameters: functionParameters
Calls a function on another script
Example
game["ScriptService"]["Script"]:Call("Foo", "Bar")
Local Functions cannot be ran using the Call function.