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

So I can't disable the mouse, why?

Asked by 4 years ago
    if RArm then    
        if reloading == true then
            uis.MouseEnabled = false
            rarmreloadcf = rarmreloadcf:Lerp(weapondata.rarmreload, 0.3)
            wait(1)
            rarmreloadcf = rarmreloadcf:Lerp(weapondata.rarmreloadin, 0.3)
        end
    end

I try to disable the mouse but it doesn't work

Error:can't set value

0
uis is a variable for userinputservice ABCTrainerDude 12 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

The property MouseEnabled can only be read from, you can't write to it like you're trying to do. It's used to see whether or not the player has access to a mouse. If you wanted to make the mouse invisible, you could instead try setting uis.MouseIconEnabled = false

1
Ok, thanks! ABCTrainerDude 12 — 4y
Ad

Answer this question