Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
4

How would you have a player wall-run horizontally?

Asked by 9 years ago

So i am trying to make a feature for my game that allows a player to run horizontally across the wall(side to side). So what are some ideas to do this? I was thinking using lookVector to determine if the player is facing a certain direction relative to the wall and then giving them a Velocity boost. The only issue with this is how would i get the player to stay connected to the wall while still being able to move. Another thought i had was to have a weld between player and relative wall, and to use renderstepped to change the C0 depending on the lookvector. What ways should i manipulate the player and their motion physics in order to make this happen?

Any suggestions help, Thanks

2 answers

Log in to vote
2
Answered by 9 years ago

Usually the wall jump is locked but theoretically you might be able to change to force of gravity on the player thru body force negate their gravity then make your own leaning towards the wall but if they were to fall off they would fall forever because I don't think theres a kill altitude for z.

Ad
Log in to vote
0
Answered by 9 years ago

To rotate the person, you can turn HumanoidRootPart in the character towards the wall, and as Dawn said, use BodyForce to negate gravity, then use a second force to align through the character's head and feet pointing towards the wall. There are actually several scripts floating around that negate gravity using a BodyForce.

Answer this question