I’ve heard there’s some free open source scripts out there but I want to make it myself, I just need the player to be able to walk on walls when it touches them, I don’t need sounds or anything like that. So yeah.
I only know that @EgoMoose made this thing.How to do this,i dont know.
Here is a link to his topic:
Wall stick/Gravity Controller - Resources / Community Resources - DevForum | Roblox
Possibly,that instruction about how to do this have in the topic.
Did you even read the post? They said they wanted to make it themselves
It’s a lot harder than you think but at the same time not complete rocket science.
The most simple and straight forward way is rotating the player and changing their gravity direction.
Standard Roblox humanoids however don’t allow this so you will need a work around such as a custom humanoid OR make the player ragdoll permanently and control their movement and rotation using a sphere part as hitbox.
-
Step 1 would be making a player character rotate to whatever wall you want them to stick onto.
-
Step 2 is making their gravity move towards that wall.
This is quite easy since it’s just a constant force applied in a direction. -
Step 3 is rotating the character so that the feet are on the wall and the head is away from it.
-
Step 4 would be doing the same for the camera, since I assume you want the camera to rotate along, this part however is the hardest.
-
Step 5 is movement, you use the camera’s looking direction to determine what direction WASD moves the player at.
You’ll need to flatten the direction so that the player doesn’t start flying if you walk backwards while the camera is looking down to the player.
Oh, I’m currently actually working on a gravity system, I could give some insight on that once I got it actually working (I’m still in the process of coding it).