1

Indexing UserGameSettings?

OniiCh_n 410
7 years ago

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...

3
Answered by 7 years ago
0
Mmkay, thanks. I've been playing around and I was able to get my way to the ControlMode... Can't seem to edit Enums though... Is there a way to modify Enums? OniiCh_n 410 — 7y
2
You can't change UserSettings. It's read-only last I checked. Everesty 1001 — 7y
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().