How do I disable Mouse/Cursor for First-Person games?

I am trying to disable the cursor in my first-person experience using the following script:

local UIS = game:GetService("UserInputService")
UIS.MouseIconEnabled = false

I’ve tried using this script and multiple methods on the DevForum, though none of them seem to be disabling the cursor:

What should I change in my script to disable the cursor for Desktop players?

1 Like

MouseIconEnabled works for me, but I guess you could just set the mouseIcon to an empty decal or image.

1 Like

MouseIconEnabled works, but I tested it in my own game, and found that it will only change the mouse cursor if the localscript is in StarterCharacterScripts

1 Like

You could add a LocalScript in StarterPlayerScripts that sets the cursor to blank (like what @Soulx_xFlame said)

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()

Mouse.Icon = "rbxassetid://"..-- then the id of a blank image

I had the script in ServerScriptService. Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.