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

How to Remove the ROBLOX Cursor? [closed]

Asked by 8 years ago

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?

Locked by JesseSong

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 8 years ago

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.

0
Thanks, Spongo! killer77612 0 — 8y
Ad