Anchored (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
Removing line breaks and completely pointless tables
>Flurite
No edit summary
 
(19 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{CatUp|Properties}}
{{CatUp|Properties}}
<onlyinclude>{{Property|
 
name = Anchored
<onlyinclude>{{Property
|property = [[Bool]] ''is anchored''
|name = Anchored
|type = {{type|bool}}
|description = Sets whether or not the object is frozen in place.
|description = Sets whether or not the object is frozen in place.
|object = [[RBX.lua.FlagStand (Object)|Flagstand]], [[RBX.lua.Part (Object)|Part]], [[RBX.lua.Seat (Object)|Seat]], [[RBX.lua.SpawnLocation (Object)|SpawnLocation]]
|object = BasePart
|}}</onlyinclude>
}}</onlyinclude>
<br style="clear:both" />
{{clear floats}}
===Description===


When an object is '''Anchored''' it cannot move around like un-anchored objects. People can't push it, and it can't fall down.
== Example ==


This is great to use when you want things to not fall into oblivion, or keep people from moving things when they shouldn't be.
This code, assuming there is a [[RBX.lua.Part (Object)|Part]] named "Part" in the [[RBX.lua.Workspace (Object)|Workspace]] service, would anchor that part.


{{code|=game.Workspace.Part.Anchored = true}}


== See Also ==
== See Also ==
[[Anchor]]
*[[Anchor]]
 
[[Category:Properties]]
[[Category:Properties]]

Latest revision as of 01:33, 16 March 2012

Anchored
Type bool
Description Sets whether or not the object is frozen in place.
Member of BasePart


Example

This code, assuming there is a Part named "Part" in the Workspace service, would anchor that part.

game.Workspace.Part.Anchored = true

See Also