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:
function Armour( )
for k, v in pairs( player.GetAll() ) do
if v:Armor() >= 1 then
v:SetBodyGroup( 1, 1 )
end end end
hook.Add( “Think”, “Armour”, Armour )
If anyone can point me in the right direction it will be much appreciated.