When a button is selected the mouse changes icon, why does this happen and how can I fix it?
This is the code used to make the cursor:
local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.Icon = "rbxassetid://133994952413786"
These are some images showing it:
Without the cursor hovering over it

With the cursor hovering over it
Detect when the mouse hover over the button and change the icon.
1 Like
But then I will have to do that with every button and it would be too annoying to do that every time
1 Like
Then make your own cursor, hide the main one with UserInputService and put an image of the cursor and make it follow the hidden cursor.
1 Like
I already have my own (its in the script) but how can I do that?
1 Like
local RunService = game:GetService("RunService")
local mouse = game.Players.LocalPlayer:GetMouse()
game:GetService("UserInputService").MouseIconEnabled = false
RunService.RenderStepped:Connect(function()
script.Parent.Position = UDim2.new(0,mouse.X,0,mouse.Y)
end)
Like this, parent this script to the image and it will follow the hidden mouse.
1 Like
works but the cursor has a bigger range since of the image

You can fix that with any photoshop software tho
how plus I already created the mouse and closed the app
When creating the mouse again, center it in the middle.
system
(system)
Closed
11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.