Mouse Cursor still showing after disabling

I am trying to hide/disable the mouse cursor and found this

local UserInputService = game:GetService("UserInputService")

UserInputService.MouseIconEnabled = false

this code is in a local script inside of Starter Gui however the cursor is still there

1 Like

Well it works for me, so maybe an in-game tool is causing the issue?

2 Likes

Insert a LocalScript inside of ScreenGui and use this:

GetPlayerMouse = game.Players.LocalPlayer:GetMouse()

GetPlayerMouse.Icon = 'rbxassetid://58334502'

do you know how to make the mouse not show when hovering over something too?

1 Like

when you hover over a button or a text box

This code works perfectly fine. What do you mean the mouse still shows?

1 Like

Do you have any other scripts that are working on the Mouse?

1 Like

nope just that one but i think since your only setting the mouse icon the first time then maybe thats why, hold on i may have a fix

1 Like

Well the script that you have used works perfectly fine for me. Tho, are you trying to make your mouse invisible and then custom? Or just invisible?

nvm ill figure it out but thanks

I mean alright, just it’s probably something with your place because your script works fine.

1 Like