So I made a function for GM:PlayerDisconnected and in that I have for k,v in pairs(ents.FindByClass(“prop_physics”)) do v:GetPhysicsObject():EnableMotion(false) end. How would I make it only freeze players props. The function calls the player that left. So ply has the players name. Im thinking it has something to do with entity:getowner but im not sure. Any help would be appreciated.
function GM:PlayerDisconnected( ply ) for k,v in pairs(ents.FindByClass("prop_physics")) do v:GetPhysicsObject():EnableMotion(false) end end