Player disappearing physics bug

I’m having a weird bug where when the player goes to perform a sliding action if they collide at the right angle into something the player disappears then reappears briefly, causing a distortion in the movement. The bug is showing no errors in my code base and is extremely infrequent, so has been genuinely very frustrating to figure out the issue.

Video of the bug:

I have tried raycasting for any objects blocking the players lookvector when starting the slide action, this sadly did not change anything.

If anyone has any further ideas or ways to help please message me! or reply in the forum post!

Show the code for the sliding action

Try printing your x, y, z just before it CFrames the humanoidLocation to see what the numbers are. If they are unexpected values then look at the code that reads and sets the variables. You might have a value in there that is sending the player off into the void for a couple frames.