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

So I can't disable the mouse, why?

	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

1 comment

0

uis is a variable for userinputservice

1 answer

✓ Accepted answer

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 comment

1

Ok, thanks!

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