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

"An error occurred" when using UserSettings?

Trying to index stuff but I keep getting the following error

18:02:40.197 - An error occurred 18:02:40.197 - Script 'Players.Player1.CirrusBin.mouseLockCheck', Line 9 - global check 18:02:40.198 - Script 'Players.Player1.CirrusBin.mouseLockCheck', Line 18 18:02:40.198 - stack end

Here is my code. (I'm using the Cirrus Framework designed by Team Rudimentality)

--[[
	Check if the player's MouseLock is on.
	
	
	
--]]

function check()
	if UserSettings().GameSettings.ControlMode.MouseLock == true then
		print("IT WORKS?!")
	else
		print("AWW...")
	end
end

while true do
	wait(1)
	check()
end

1 answer

✓ Accepted answer

It seems that UserSettings() is locked (requires level 4 elevation)

5 comments

0

This, in pretty simple terms, means it can't be used with a Local or Normal script.

0

Only in cmdbar/corescripts/etc

0

So I'm not allowed to check it...

0

Indeed :(

0

Dangit ROBLOX... Just dangit...

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