Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

Indexing UserGameSettings?

Asked by
OniiCh_n 410 Moderation Voter
6 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...

2 answers

Log in to vote
3
Answered by 6 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 — 6y
2
You can't change UserSettings. It's read-only last I checked. Everesty 1016 — 6y
Ad
Log in to vote
0
Answered by
Everesty 1016 Moderation Voter
6 years ago

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

Answer this question