I’ve made a script which allows the player to enter a crouch and walk around, which all works fine; however, the crouching animation doesn’t actually make the player smaller. This makes it impossible for the player to crouch under things as I would like.
I’ve already tried searching for a solution but I couldn’t seem to find anything that works, I also attempted to change the players hip height which worked but it made the player fall to the ground and looked strange.
In summary, is there a value that I can edit with a script to change a players hitbox, while maintaining their visual hitbox to avoid strange interactions.
Set the cancollide property of the HumanoidRootPart of the player’s character to false. Because even though it looks like they are smaller, the HumanoidRootPart is probably colliding making the player unable to get under things. You can do this in the script and I’ll give you an idea.
I think it should be fine, because even though the character’s body moves during the crouch animation, the HumanoidRootPart stays in place and still collides with the wall.
But you set it to CanCollide ) false. So it can’t collide with walls. My objective is to get the RootPart to go lower so that the player gan go into places that ware lower
I understand your concern. I’ve created a sliding animation before that’s similar to crouching, but to make it work, I had to set the HumanoidRootPart to CanCollide = false. That allowed the character to move under low areas without getting stuck.