I’m working on a wall climbing system for my game and I was wondering what is the best way to make a player forcefully face a wall? I’ve tried body gyros but I could never get it to work.
I raycast onto the wall so I can use the raycast normal / raycast position if its needed.
Probably try disabling userinput while the character rotating to face the wall then maybe to avoid the turning out of it problem, not sure by snappy you can always just use tweens to avoid that
Not sure if it can prevent shiftlock, although it is possible to edit the shiftlock code to only enable when a player not climbing a wall you have to look thru the player scripts for that
Alternatively you can make a fake character that way its 0 chance for player to have control over movement
I want it to be able to be enabled whilst climbing though.
The issue is getting a force strong enough to prevent the body from turning at all so it stays locked onto the wall.
Anchor the HumanoidRootPart of the player’s character (they will still be able to rotate), if you need the camera to fixate on a wall then you should be scripting the camera instead of attempting to disable player controls.
I use body positions instead of anchoring the humanoidrootpart.
I’m not trying to make the camera face the wall I’m trying to make the player face the wall and be unable to turn away from it while the player is climbing
Similar to what limited said about camera manipulation I think coding your own shift lock style camera would provide much better flexibility for what your trying to do
You can use this module if you don’t want to code your own
I dont think thats necessary. I tried setting the cframe every runservice render step and that seems to do the trick and it doesnt snap. Only issue is shift lock can override it once more. Is there anyway to disable shiftlock rotating the character temporarily?