Hey all,
Just got a problem with a little script I am working on, All I want it to do is if a player has armour then set its bodygroup.
Here is the code:
[lua]
function Armour( )
for k, v in pairs( player.GetAll() ) do
if v:Armor() >= 1 then
v:SetBodyGroup( 1, 1 )
v:SetNWBool(“Armour”, true)
end end end
hook.Add( “Think”, “Armour”, Armour )
[/lua]
If anyone can point me in the right direction it will be much appreciated.