I'm trying to index the MouseLock boolean. I'm doing this because I need to make sure all players are in MouseLockSwitch so the gameplay isn't ruined. Since the UserGameSettings are technically an object, isn't it possible to index them?
http://wiki.roblox.com/index.php?title=RBX.lua.UserGameSettings_(Object)
^States that it is in fact an object so...
I've tried
RBX.lua.UserGameSettings
but it gives me the error "attempt to index global 'RBX' (a nil value)
Hmm...
http://wiki.roblox.com/index.php?title=Function_dump/Functions_specific_to_ROBLOX#UserSettings
Look at the end of the page
RBX.lua.UserGameSettings
is just a namespace, from what I remember. The object's actual name is UserGameSettings
. To get these settings, just call UserSettings()
.