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

How to disable Mouse Lock?

The title says it all. I am using this in a localscript in StarterGui. I believe this is how you are supposed to use :SetCoreGuiEnabled. So I went to the API and I believe I have it set up correctly.

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
game.StarterGui:SetCoreGuiEnabled(Enum.ControlMode.Classic, true)

And I get this error when I attempt to run it.

20:06:52.862 - Unable to cast token to token
20:06:52.863 - Script 'Players.Player.PlayerGui.LocalScript', Line 2

Any help is appreciated :)

1 answer

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