Maybe stop the shiftlock rotating the player?
Nope, they don’t I will tell you an example. YBA
By the way, what I sent before was not the default from StarterPlayer. It is a property of Player that determines whether the player is allowed to use ShiftLock without needing to reset. Have you tried this yet?
for i, v in pairs(Players:GetPlayers()) do
v.DevEnableMouseLock = false
end
Sure, will try that right now. Thanks.
pretty sure that wont work (cause of errors) i encountered one
See but the problem is it disabled shift lock but my mouse was stuck in the middle and my character was still rotating while moving my mouse.
mate just make a custom shiftlock YBA used a replica of the original shiftlock OR i think it may be possible
let me see ill tell you soon
I have no idea how to do that.
same let me see if i can disable it mid game lol
I tried a way and it broke my roblox studio, I removed the code but it is still broken. How is this possible?
robloxapp-20220506-1655439.wmv (1.5 MB)
welp couldnt figure it out guess someone else would come and help
Game > StarterPlayer > EnableMouseLockOption
put the script in ServerScriptService
local CanShiftLock = false
local function Check()
if CanShiftLock == true then
game.StarterPlayer.EnableMouseLockOption = true
else
game.StarterPlayer.EnableMouseLockOption = false
end
end
Check()
Can you please read the replies?
oh the problem is you need to re-open studio because sometimes the camera follows the player on roblox studio, it happened to me too
No, I already fixed that problem. I’m talking about disabling shift lock While playing. No need to reset, or anything. Just disable shift lock and all of its functionalities.
ye this would work, You can just customize it like this
-- Can shiftlock
CanShiftLock = true
Check()
-- Cant shiftlock
CanShiftLock = false
Check()
Okay, I will try that right now! (Didn’t try before because I thought I already used the code you sent.)
Nope, That didn’t work aswell.
the script must be a local script and on workspace
wait nvm i forgot to change the post