Revision Difference
Player:Armor#512672
<function name="Armor" parent="Player" type="classfunc">⤶
<description>Returns the player's armor.</description>⤶
<realm>Shared</realm>⤶
<rets>⤶
<ret name="" type="number">The player's armor.</ret>⤶
</rets>⤶
</function>⤶
⤶
<example>⤶
<description>Loops through all the players and checks if they have any armor, if they do not, then sets their armor to 100.</description>⤶
<code>⤶
for _, v in pairs( player.GetAll( ) ) do⤶
if v:Armor( ) == 0 then⤶
v:SetArmor( 100 )⤶
end⤶
end⤶
</code>⤶
⤶
</example>