Changing the mouse icon with UserInputService doesn’t stop UI from changing the mouse icon to a different one, how do I stop it from changing?
The mouse icon changing is a core thing which you cannot change, so disabling it won’t work. You have to stick with UIS to make any improvement. I suggest constantly changing the mouse icon if you weren’t doing that already
This would be an easy fix, if I didnt have it so when you click it changes the icons color
In that run service function, you can check if the button had been clicked with a flag, then keep it like that for how much time you need
local button = script.Parent
local id = -- Your id here
local uis = game.UserInputService
local clickflag
button.Activated:Connect(function()
buttonflag = true
end)
game['Run Service'].RenderStepped:Connect(function()
if not buttonflag then
uis.MouseIcon = id
else
-- Change icon color
wait(5) -- more or less
buttonflag = false
end
end)
Did some similar tests, having it constantly change to the new icon doesnt stop the default cursor from appearing
Pretty much what I did to make this work was make a ScreenGui with a high DisplayOrder, using an ImageLabel I just made it follow the player’s mouse position, and disabling the mouse icon using UserInputService.
Good to know that. Maybe I’ll keep this in mind
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.