Some help with a few things


hook.Add( "Think", "GetModelShit", function()

	for k, v in pairs( player.GetAll() ) do

		if v:GetModel() == "models/player/zelpa/male_10.mdl" then
		
		--	v:SetBodygroup( 1, 0 ) 
		--	v:SetBodygroup( 2, 0 ) 
		--	v:SetBodygroup( 3, 0 ) 
			v:SetBodygroup( 4, 1 ) 
			
		elseif v:GetModel() == "models/player/zelpa/female_01.mdl" then
		
			v:SetBodygroup( 1, 0 )  
			
		end	
	
	end

end )

This is for DarkRP, I am trying to set their bodygroup if their model is that and such. I tried the playerspawn base DarkRP function and it didn’t seem to work. Any comments would be helpful!

Don’t do it in a think hook. Do it on player spawn.

Doesn’t work

Put in prints to see where it is failing.