I have this ability thing and there’s a small cutscene when you’re charging up. The issue is that when shiftlock is not on, the cutscene looks fine. But when shiftlock is on the character rotates to where the camera is facing (3/4 angle of the body), instead of facing where it was originally. Is there a way to fix this?
game.StarterPlayer.EnableMouseLockOption = false
Disables mouselock for all players
You can also do this in the “StarterPlayer”
Yes but you cannot temporarily turn it off to my knowledge. If you turn it off it will be permanent
A server-script has the ability to enable it permanently or temporarily and disable it permanently or temporarily as well.
Basic example:
local StarterPlayer = game:GetService("StarterPlayer")
while true do
StarterPlayer.EnableMouseLockOption = true
task.wait(5)
StarterPlayer.EnableMouseLockOption = false
end
I appreciate it, but also It doesn’t work when I specifically toggle the property of starterplayer, but instead I have to toggle the property of the main player
Nevertheless, it works and turns of shiftlock, however the character is still facing the wrong way, so I’ll continue to find a solution
I found a solution
Temporarily disable the Humanoid.AutoRotate property in the script
surprisingly simple but still thanks for the help
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.