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

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
mNo edit summary
>GoldenUrg
fix description
Line 4: Line 4:
{{Preliminary}}
{{Preliminary}}


LocalScripts are scripts that only run in two places:
LocalScripts are scripts that only run in three places:


#In the local player's [[RBX.lua.Backpack (Object)|Backpack]]
#In the local player's [[RBX.lua.Backpack (Object)|Backpack]]
#In the local player's character model
#In the local player's character model
#In the local player's [[RBX.lua.PlayerGui (Object)|PlayerGui]]


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.
LocalScripts are intended to be used to create light-weight client-side eye candy.  


==Functions==
==Functions==

Revision as of 03:27, 13 April 2010


Preliminary:This item is under development and is likely to change. Use only for experimental work.

LocalScripts are scripts that only run in three places:

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

LocalScripts are intended to be used to create light-weight client-side eye candy.

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.