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

How to Remove the ROBLOX Cursor?

Well, I'm scripting my game but I've add a First Person system, and then it locks but I need the Cursor gone ASAP. Because It is annoying and moves wherever you move. Anyone got any Answers?

1 answer

✓ Accepted answer

There are a few methods you can try to achieve what you want to do.


Method 1: MouseIconEnabled

You can use the MouseIconEnabled property of the UserInputService to get rid of the icon of the cursor. It is set to true by default, but you can easily make it false.

game:GetService("UserInputService").MouseIconEnabled = false --Disables the mouse icon.

Method 2: Getting the mouse and using a blank icon

You can get the Player's mouse by using the GetMouse method in a LocalScript. You could not change the icon through GetMouse until recently, so you can set the mouse icon to a blank ID and the icon will go away.

local mouse = game.Players.LocalPlayer:GetMouse() --Gets the LocalPlayer's mouse.
mouse.Icon = "" --Sets the Icon property to blank, effectively hiding the mouse icon.

I hope my answer helped you. If it did, be sure to accept it.

1 comment

0

Thanks, Spongo!

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