nexos_x7
(Nexos)
#1
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
NyrionDev
(Nyrion)
#2
Well it works for me, so maybe an in-game tool is causing the issue?
2 Likes
imR_otax
(imR_otax)
#3
Insert a LocalScript inside of ScreenGui and use this:
GetPlayerMouse = game.Players.LocalPlayer:GetMouse()
GetPlayerMouse.Icon = 'rbxassetid://58334502'
nexos_x7
(Nexos)
#4
do you know how to make the mouse not show when hovering over something too?
1 Like
nexos_x7
(Nexos)
#6
when you hover over a button or a text box
imR_otax
(imR_otax)
#7
This code works perfectly fine. What do you mean the mouse still shows?
1 Like
imR_otax
(imR_otax)
#8
Do you have any other scripts that are working on the Mouse?
1 Like
nexos_x7
(Nexos)
#9
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
imR_otax
(imR_otax)
#10
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?
nexos_x7
(Nexos)
#11
nvm ill figure it out but thanks
imR_otax
(imR_otax)
#12
I mean alright, just it’s probably something with your place because your script works fine.
1 Like