-
What do you want to achieve?
I have a door system that if you hover over the button the Mouse Icon will change to a hand. If you don’t hover over the button the MouseIconEnabled will be set to false. This is because normally in my game there is no mouse in the first place. -
What is the issue? Include screenshots / videos if possible!
The issue is the flickering when hovering off the button. Even though the Default Mouse Icon is set to the hand? Here is what I mean:
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried setting the Mouse Icon to transparent and it didn’t work. Furthermore, I couldn’t find any similar developer posts with a question such as mine. Thank you for any help.
-- Door Script (server)
script.Parent.Button1.ClickDetector.MouseHoverEnter:Connect(function(Player)
Events.Door:FireClient(Player, true)
end)
script.Parent.Button1.ClickDetector.MouseHoverLeave:Connect(function(Player)
Events.Door:FireClient(Player, false)
end)
-- Local Script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Events = ReplicatedStorage.Events
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "rbxassetid://4786916921"
game:GetService("UserInputService").MouseIconEnabled = false
Events.Door.OnClientEvent:Connect(function(state)
game:GetService("UserInputService").MouseIconEnabled = state
end)