I'm glad someone else appreciates squished visuals. One issue, though. It seems like the collision height is wrong - if you set it to 0, the player can crouch to phase through any wall.
collisionbox = { -0.3, 0, -0.3, 0.3, 0, 0.3 } -- Colisión más baja al agacharse
Try instead:
collisionbox = { -0.3, 0, -0.3, 0.3, 0.95, 0.3 } -- Colisión más baja al agacharse
In singleplayer, this works great. In multiplayer, there's a lag between the time I press sneak and the time I visually see my character crouch. I didn't look at the code but it feels like the sneak request has to make a round trip between my computer and the server before my sneak takes effect. Not good.
nice
I'm glad someone else appreciates squished visuals. One issue, though. It seems like the collision height is wrong - if you set it to 0, the player can crouch to phase through any wall.
Try instead:
High latency in multiplayer
In singleplayer, this works great. In multiplayer, there's a lag between the time I press sneak and the time I visually see my character crouch. I didn't look at the code but it feels like the sneak request has to make a round trip between my computer and the server before my sneak takes effect. Not good.