How could I stop people climbing very slight slopes?

I have some walls that are wedges on a slight slope and I want to stop people climbing them because it’s unrealistic.

Usually I’d just put up some invisible walls but this is for a game including guns and I feel people may want to shoot around corners and bad hit boxes could get annoying.

Is there any alternative or no?

Have you tried messing with the part’s custom physical properties? (trying to make it more slippery by reducing the friction, and such)

1 Like

You can do it with a script. I don’t script so I can’t provide the code but you need to make it change the climbing angle (don’t remember the name of that property to 90* in the humanoid properties. Fair warning - it’ll make it unable for them to climb ALL slopes.

Edit: Or just add an invisible wall.

4 Likes

Humanoids have a MaxSlopeAngle property. As Krunnie suggested, you can edit this with a script.


… Or just add an invisible wall like their other suggestion :stuck_out_tongue:

8 Likes

There is a property inside the humanoid that determines the maximum slope angle a character can walk up, if that helps

Edit: NINJA’D

3 Likes