How to make players slide off of other player's heads

Hello! How would I make players unable to jump on other players, without removing player collision? I guess that’s it. Similar to what Cryptik does in their game.

1 Like

Uh, this post needs more information. Just try disabling jump.

Sorry man. Basically I want to allow jumping and player collision, but make players unable to jump on each other, like in Cryptik. Not sure how to make this more clear? (Just realised that sounded rude, not what I was going for, sorry)

1 Like

Well, im not reslly sure either. Maybe you can add an invisible block above the players head?

1 Like

I was thinking the same thing, but that would become VERY problematic. I was thinking I could add an invisible pointy hat on players heads, then make CharacterMaxSlopeAngle around 45 degrees. Kinda like this:

I’m not sure if this will work well, but the first thing that came to my mind was just to use velocity on the head’s part.

Similar to how conveyor belt works.

(not sure whether this will work or if this is a good idea at all :man_shrugging:)

1 Like

I thought the exact same thing! The thing is it doesn’t work for humanoids… Other than that it would have worked great.

How about if a player is touching another player then they cant jump? Or will that cause problems too?

1 Like

But they would still be able to jump on the other player, just not jump back off.

1 Like

Maybe you could run a script every time the player’s head registers a TouchEvent, and then do a check to see if the touching part is a descendant of somebody else’s player character, and if it is, you could apply a small force to that player character’s HumanoidRootPart.

3 Likes

I’ll try that, thank you :slight_smile:

2 Likes