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

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
m CatUp; NOTOC
>Nate
Fixed several errors. Rewrote the description as the grammar use bothered me.
Line 4: Line 4:
== Description ==
== Description ==


A tool is similiar to a [[RBX.Lua.HopperBin|HopperBin]], as it is held in the Player's [[RBX.lua.Backpack|BackPack]], or inventory.  
The Tool object acts as a weapon or other object that is stored in a [[RBX.lua.Player|Player]]'s [[RBX.lua.Backpack|Backpack]].


It is different from a HopperBin, because it is attached to a brick, and sometimes a mesh. (For example, a rocket launcher)
When selected, a tool is automatically transferred to the Player's character and it is held in the right hand be default.


Tools require scripting to function.  However, you can create tools that allow you to wear items, like a temporary hat.
Tools require scripting to function.  However, you can create tools that allow you to wear items, such as a temporary hat.
 
The mouse object can only be used via a [[RBX.lua.LocalScript|LocalScript]], And therefore all keyboard inputs must be handled by the client computer. A workaround to this is to use Values which can be changed to make the server sided [[RBX.Lua.Script|Script]] function.


==Functions==
==Functions==
The Tool only incorporates the global functions.
The Tool object only incorporates global functions.


==Properties==
==Properties==
In addition to the global properties, the Tool also uses these:
In addition to the global properties, the Tool object also has these:


*[[GripForward]]
*[[GripForward]]
Line 26: Line 24:


==Events==
==Events==
In addition to the global events, the HopperBin also uses these:
In addition to the global events, the Tool object also has these:


*[[Activated]]
*[[Activated]]

Revision as of 11:50, 2 August 2008


Description

The Tool object acts as a weapon or other object that is stored in a Player's Backpack.

When selected, a tool is automatically transferred to the Player's character and it is held in the right hand be default.

Tools require scripting to function. However, you can create tools that allow you to wear items, such as a temporary hat.

Functions

The Tool object only incorporates global functions.

Properties

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

Events

In addition to the global events, the Tool object also has these: