How to create a wall jump script?

Hey y’all I’m working on a game and I wanna allow players to jump off walls or hold onto them (if they hold onto the wall they’ll slide down) I’ve tried looking for tutorials or guides on how I can do this, but actually couldn’t really find anything helpful at all so yeah I’m coming here to see if someone could give me some tips I’m also still a bit of a rookie to coding so hopefully this isn’t to complicated to learn :sweat_smile:

5 Likes

how I would go about this is I would make an Invisible Part that the player’s normal height doesn’t touch which would check if the player is at the wall or not. then I make it so the player’s velocity changes downwards consistently if the player is touching the part. Then using UserInputService would check if the player has pressed a key. Which would then send the player at an uppwards velocity as well as a velocity opposite to the invisible part’s direction. Hope I Helped!

2 Likes