Ad
Log in to vote
2

"An error occurred" when using UserSettings?

Asked by
OniiCh_n 410 Moderation Voter
7 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 7 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. Everesty 1001 — 7y
0
Only in cmdbar/corescripts/etc Hippalectryon 3 — 7y
0
So I'm not allowed to check it... OniiCh_n 410 — 7y
0
Indeed :( Hippalectryon 3 — 7y
0
Dangit ROBLOX... Just dangit... OniiCh_n 410 — 7y
Ad

Answer this question