Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you disable shift lock for gui's?

I have shiftlock forced on the player when they join but I want to know how to disable it when they open a gui so their mouse isn't locked.

local mouse = game.Players.LocalPlayer:GetMouse()

mouse.KeyDown:connect(function(key)
	if key:lower() == "g" then
		script.Parent.Enabled = not script.Parent.Enabled
	end
end)
this.ShiftLock = true

1 answer

✓ Accepted answer

change your camera type to "Scriptable" when they press g. then when they get out of the gui, change your camera type back to "Custom". all of these camera types are found in "Camera" in "Workspace".

This discussion is preserved as it was. New answers, comments, and votes are closed.