Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you have a custom cursor icon and have click detectors have different cursor icons?

Sorry if the title was confusing, let me elaborate. I am making a game where the cursor icon is a small dot. I have that done in this simple code:

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "rbxassetid://1910609349"

However, I have noticed that if the script is enabled, custom cursor ids on click detectors will just be canceled out. I'm not sure why this is happening, a step in the right direction to fixing this issue would be appreciated.

Thanks

1 answer

✓ Accepted answer

You can use the CursorIcon property of ClickDetector to assign a custom cursor-icon. This property exists in the Properties window, so you can simply paste your Cursor Icon ID. If you wish to modify it by script:

local ClickDetector = script.Parent
local CursorId = --// Icon Asset ID
ClickDetector.CursorIcon = "rbxassetid://"..CursorId

1 comment

0

i did that but like I said, it just cancels out the custom cursor icon that i put into the click detector. it just keeps the original cursor icon that i already have for the mouse

This discussion is preserved as it was. New answers, comments, and votes are closed.