Realistic sliding system

how would i acheive this kind of sliding system i have tried different things but no of them come close to this

6 Likes

Seems like there’s already a community tutorial on sliding… Sliding system with cooldown (R15)

that doesnt change according to the slope

If you want the sliding velocity to change depending on slope, try using BasePart.CustomPhysicalProperties.Friction and FrictionWeight.

If this doesn’t give you the desired effect, you could also come up with a method for calculating the slope of the surface below the character.

1 Like

log the x y and z rotational coordinates of the player using CFrame:ToOrientation()

cast a ray down and create a new CFrame of from the point of intersection + the normal upwards and extrude by the character’s HipHeight. multiply that CFrame by CFrame.Angles(0, y, 0) and you’ll have the character rotated to be perpendicular with the slope at their current local Y rotation.

from there just do CFrame.lookVector and check if the Y is negative (speed up you’re facing down) or if the Y is positive (either don’t go up or slow down bc you’re facing up). the movement itself can be via BodyMovers (bodyvelocity or linearvelocity) or some other method you desire.

3 Likes

Are you using ChatGPT? That kind of seems like a robot.

5 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.