Custom Mouse Icon Issues

So I’m trying to create a custom mouse icon. I set the mouse icon to the texture and everything works fine. The issue arises when I mouse over a Button of any kind. Roblox’s black cursor replaces the icon I set.

I also tried making a fake cursor, but then I realized that the mouse will always layer on top of any UI element anyway, so that obviously didn’t work. I’m wondering if there’s a way to disable Roblox’s “hover” cursor from appearing or overriding the mouse icon I set?

I do know that one solution is to create a custom button system that uses labels instead of buttons, but I want to know if I can fix the issue outright.

Thanks

Example:
https://i.gyazo.com/0f1fd1ec53243b6c1dbd5cf6c41100eb.mp4
(Also, ignore the weird texture issue and secondary mini-mouse, that’s all Gyazo’s fault and not what I’m referring to.)

Have you tried disabling the mouse icon?

local Mouse = game.Players.LocalPlayer:GetMouse()
game:GetService(“UserInputService”).MouseIconEnabled = false

3 Likes

That defeats the whole purpose of OP’s goal…?

I mean disabling the mouse icon and replace it with the custom one instead?

1 Like

Thanks, I had no idea InputService had this property. I wish it were under Mouse properties, but whatever. This solves my issue.

In case you don’t know you can also do this to disable the mouse icon

local Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.Icon = “”

Oh, does that actually disable it, or just make the texture blank? I tried it with an actual texture that was also blank.

Edit:

Actually, that didn’t even make the mouse invisible for me. But the other solution works anyway.

Hey I’m having the same problem with my mouse can you tell me how you fixed this problem?

yo your solution to the mouse problem doesnt work I run your code then set my mouse texture and it does not work

Could you show me what’s wrong with your mouse?

the problem is its just very offsetted but I can

Could you provided an image? Sorry, I’m not sure if this solution is outdated yet but it shouldn’t be.

sorry I got tired last night and went to bed and forgot to post the problem

nevermind lol I fixed it fiddling around with anchor point but thanks for your response anyway!

1 Like