You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to get the shift lock to get turned off and turned on a bit later.
What is the issue? Include screenshots / videos if possible!
There are no issues I have no idea how to do that.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Yes, I did. But all the solutions worked only after resetting.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
local function Shiftlock(Enabled:boolean,Player:Player)
Player.DevEnableMouseLock = Enabled
end
game.Players.PlayerAdded:Connect(function(plr)
Shiftlock(false,plr) -- false means it will be disabled true means it will be enabled
end)
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