How to stop shiftlock/first person camera from turning the character?

I’ve been running into an issue with the way that the default camera tries to force the character into the direction its looking at, which typically works with normal gravity angles, but I’m working on a system similar to a wall walking system/gravity controller which the camera doesnt understand, and so instead throws the character around violently when it gets to an orientation which would typically immediately flip the character to face the opposite direction.


the only proper way i can see to fix this issue is to stop whatever the typical PlayerModule tries to do when the user is in first person/shiftlock mode, and instead remake this on my own in a way that i know how to fix. the thing is, how would i actually disable this function/feature?


to explain what I’m trying to ask right now, think of a camera similar to gameplay I’ve seen in Rust or modded Minecraft, where you can enter a kind of “freecam” where the user can rotate their camera around freely in first person without rotating their actual character. I could enable this mode when the user zooms into first person, or enables shiftlock, and then override what would typically occur with my own code that would actually work with all the odd rotations that Roblox’s standard camera system typically doesn’t understand.

2 Likes

camera
to explain in further detail what i think is causing my original issue, when a player is standing at a rotation near 90 degrees (aka as if standing on a wall) and then look slightly up/down, the standard camera which still is assuming everything is normal will see the user move their camera so that its direction passes the point that would typically be looking straight up, making it believe the player suddenly rotated 180 degrees, which is causing a sudden whip around whenever i accidentally cause this effect by panning my camera/moving the camera by walking

2 Likes

Try setting the camera type to scriptable, then setting the cframe to a fixed point behind the player when they enter the wallrun

2 Likes

sadly i really would prefer using the standard camera system, as I am intentionally using a modded version of the camera that allows the player to have a standard camera that is compatible with being rotated to match the players gravity;

i would prefer to change the code of the PlayerModule, instead of completely remaking the system myself which I know would look alot more unpolished :sweat_smile:

2 Likes

Maybe disable “AutoRotate” in your Character’s Humanoid?

3 Likes

tried this, however i believe this feature is for making the character loosely walk to turn and try and follow the camera, not the stricter camera modes (shiftlock + first person) that i was asking about here.

i provided a better explanation to this original post in another reply section here if anyone still want to help (im still waiting for an answer :sweat_smile:)

2 Likes

wth??? nevermind, tsym, apparently this was the solution when i tried it now but im almost certain i remember attempting to try changing this property myself without any results :skull: is definitely the solution though, thank you again for saving this 8 day old question lmao

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.