GBX.lua.LocalScript (Object): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(Created page with "{{CatUp|Class reference}} {{Preliminary}} LocalScripts are scripts that only run in two places: # In the local player's Backpack # In the local...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
*[[LinkedSource (Property)|LinkedSource]]
*[[LinkedSource (Property)|LinkedSource]]
*[[Source (Property)|Source]]
*[[Source (Property)|Source]]


==Events==
==Events==
The LocalScript object only incorporates the global events.
The LocalScript object only incorporates the global events.


[[Category:Goodblox Lua Objects]] [[Category:Preliminary Objects]]
[[Category:GoodBlox Lua Objects]]
[[Category:Preliminary Objects]]

Latest revision as of 20:11, 23 September 2021

Preliminary: This item was still under development in this version of Roblox. Use only for experimental work.

LocalScripts are scripts that only run in two places:

  1. In the local player's Backpack
  2. In the local player's character model

LocalScripts are intended to be used to create light-weight client-side eye candy. Because they do not run on the server and are not replicated to other clients, they have zero network overhead.

Functions

The LocalScript object only incorporates the global functions.

Properties

In addition to the global properties, the LocalScript object also has these:

Events

The LocalScript object only incorporates the global events.