So I want to make a system where you hold space against a wall, and if you are also pressing ‘W’, then you will run up the wall. I also want to implement a left and right with A and D, but I can’t even figure out the right way to start.
I don’t need a script, but some documentation and tips for functions would help me more. I was thinking of raycasting a ray in front of the player, but I’m not sure how to use UserInputService to achieve this, other than using variables and multiple remotes to create a barely working system.
Create a basis of what you want to do.
You want to make a function that first checks if the player is touching a wall or is in range
to perform a wall climb. You mostly want to check if the player is holding w when trying to wall run.
Take it step by step.
First, figure out the first thing to do, in this case checking if a player is holding w when trying to perform a wall run. Then you solve problems like that one step at a time.
Once you’ve created the draft, you want to fix any errors in your code and add other features.
*You can repeat these steps if you’re adding more features
Try researching each problem one at a time; it will make the designing and implementing so much easier.
to run up the wall you can check if the wall has touched the player by using .touched event.
Mb if it’s sloppy it’s 1am right now .
As well I believe when the input has been met, you can fire a remote event to the server notifying the wall being touched, while the buttons are being pressed/hold. then play the animation the server.
after looking through, could I set up a loop that runs GetKeysPressed() and if space and w are both, then fire a remote event? and if say, a or d is pressed, then I would probably use a different remote, with a parameter, which would be set to right or left, for those directions?
Here’s how I do:
First I send a raycast from the player’s HumanoidRootPart to right or left, if found something and player hit (and hold) space, I weld their character to the wall and use AlignPosition to keep the position constat from the wall, increase it every then to make the player move forward, and if hit space while wall running, you can simply destroy the weld and destroy the AlignPosition.