Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Indexing UserGameSettings?

Asked by
OniiCh_n 410 Moderation Voter
10 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 10 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 — 10y
2
You can't change UserSettings. It's read-only last I checked. User#2 0 — 10y
Ad
Log in to vote
0
Answered by
User#2 0
10 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