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

"An error occurred" when using UserSettings?

Asked by
OniiCh_n 410 Moderation Voter
10 years ago

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

Log in to vote
3
Answered by 10 years ago

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

0
This, in pretty simple terms, means it can't be used with a Local or Normal script. User#2 0 — 10y
0
Only in cmdbar/corescripts/etc Hippalectryon 3 — 10y
0
So I'm not allowed to check it... OniiCh_n 410 — 10y
0
Indeed :( Hippalectryon 3 — 10y
0
Dangit ROBLOX... Just dangit... OniiCh_n 410 — 10y
Ad

Answer this question