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

From Legacy Roblox Wiki
Jump to navigationJump to search
no edit summary
>GoldenUrg
(fixed links)
>Mr Doom Bringer
No edit summary
Line 1: Line 1:
{{CatUp|Class reference}}
__NOTOC__ {{CatUp|Class reference}}
__NOTOC__


<div class="tabber">
<div class="tabbertab" title="Info">
{| cellspacing=2 cellpadding=4 border=0 width=100%
|style="vertical-align:top"|{{:Object:Part}}
|style="vertical-align:top"|{{LeftNoticeStart}}
The '''Part''' object is a physical object. It, when it is in the [[RBX.lua.Workspace (Service)|Workspace]], will move and interact with other '''parts'''. It can have bonds formed with other '''parts''', so that the two parts stay in the same relative position.
The '''Part''' object is a physical object. It, when it is in the [[RBX.lua.Workspace (Service)|Workspace]], will move and interact with other '''parts'''. It can have bonds formed with other '''parts''', so that the two parts stay in the same relative position.


==Functions==
In addition to the global functions, the Part also has the following functions:
* [[BreakJoints (Function)|BreakJoints]]
* [[GetMass (Function)|GetMass]]
* [[MakeJoints (Function)|MakeJoints]]
==Properties==
In addition to the global properties, the Part also has these properties:
*[[Anchored (Property)|Anchored]]
*[[BrickColor (Property)|BrickColor]]
*[[CFrame (Property)|CFrame]]
*[[CanCollide (Property)|CanCollide]]
*[[Controller (Property)|Controller]]
*[[ControllerFlagShown (Property)|ControllerFlagShown]]
*[[Elasticity (Property)|Elasticity]]
*[[Friction (Property)|Friction]]
*[[Locked (Property)|Locked]]
*[[NetworkOwner (Property)|NetworkOwner]]
*[[Position (Property)|Position]]
*[[Reflectance (Property)|Reflectance]]
*[[RotVelocity (Property)|RotVelocity]]
*[[Shape (Property)|Shape]]
*[[Size (Property)|Size]]
*[[Transparency (Property)|Transparency]]
*[[Velocity (Property)|Velocity]]
*[[formFactor (Property)|formFactor]]
==Surfaces==
Since the Part is a 3D rendered object, it has surface properties and inputs. There is a Parameter A, B a Surface and a SurfaceInput for each of the 6 sides. Since they all work the same, they are only documented once. Simply place the name of the side in front of the property:
*[[ParamA (Property)|BackParamA]]
*[[ParamB (Property)|BackParamB]]
*[[Surface (Property)|BackSurface]]
*[[SurfaceInput (Property)|BackSurfaceInput]]
*[[ParamA (Property)|BottomParamA]]
*[[ParamB (Property)|BottomParamB]]
*[[Surface (Property)|BottomSurface]]
*[[SurfaceInput (Property)|BottomSurfaceInput]]
*[[ParamA (Property)|FrontParamA]]
*[[ParamB (Property)|FrontParamB]]
*[[Surface (Property)|FrontSurface]]
*[[SurfaceInput (Property)|FrontSurfaceInput]]
*[[ParamA (Property)|LeftParamA]]
*[[ParamB (Property)|LeftParamB]]
*[[Surface (Property)|LeftSurface]]
*[[SurfaceInput (Property)|LeftSurfaceInput]]
*[[ParamA (Property)|RightParamA]]
*[[ParamB (Property)|RightParamB]]
*[[Surface (Property)|RightSurface]]
*[[SurfaceInput (Property)|RightSurfaceInput]]


*[[ParamA (Property)|TopParamA]]
*[[ParamB (Property)|TopParamB]]
*[[Surface (Property)|TopSurface]]
*[[SurfaceInput (Property)|TopSurfaceInput]]


==Events==
In addition to the global Events, the Part also has these events::


* [[OutfitChanged (Event)|OutfitChanged]]
Description description description examples examples etc. etc.
* [[Touched (Event)|Touched]]
|}
|}
</div>
<div class="tabbertab" title="Methods">
{{:Clone (Function)}}{{:FindFirstChild (Function)}}
{{:GetChildren (Function)}}
{{:GetFullName (Function)}}
{{:IsA (Function)}}
{{:IsAncestorOf (Function)}}
{{:IsDescendantOf (Function)}}
{{:Remove (Function)}}
{{:BreakJoints (Function)}}
{{:GetMass (Function)}}
{{:MakeJoints (Function)}}
</div>
<div class="tabbertab" title="Properties">
{{:Name (Property)}}{{:Parent (Property)}}
{{:Archivable (Property)}}
{{:ClassName (Property)}}
{{:Anchored (Property)}}
{{:BrickColor (Property)}}
{{:CFrame (Property)}}
{{:CanCollide (Property)}}
{{:Controller (Property)}}
{{:ControllerFlagShown (Property)}}
{{:Elasticity (Property)}}
{{:Friction (Property)}}
{{:Locked (Property)}}
{{:NetworkOwner (Property)}}
{{:Position (Property)/Vector3}}
{{:Reflectance (Property)}}
{{:RotVelocity (Property)}}
{{:Shape (Property)}}
{{:Size (Property)/Vector3}}
{{:Transparency (Property)}}
{{:Velocity (Property)}}
{{:ParamA (Property)}}
{{:ParamB (Property)}}
{{:Surface (Property)}}
{{:SurfaceInput (Property)}}
</div>
<div class="tabbertab" title="Events">
{{:AncestryChanged (Event)}}
{{:Changed (Event)/property}}
{{:ChildAdded (Event)}}
{{:ChildRemoved (Event)}}
{{:DescendantAdded (Event)}}
{{:DescendantRemoving (Event)}}
{{:LocalSimulationTouched (Event)}}
{{:Touched (Event)}}
</div>
</div>


[[Category:ROBLOX Lua Objects]]
[[Category:ROBLOX Lua Objects]]
Anonymous user

Navigation menu