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
Dpveloper
(DerDev)
January 27, 2024, 11:48pm
#3
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!
system
(system)
Closed
February 10, 2024, 11:54pm
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.