I know that you can replace the mouse icon but does anyone know the one used for a click detector or how I could find it? this is my script so far but i need it's decal ID
1 | local mouse = game.Players.LocalPlayer:GetMouse() |
2 | if mouse.Icon = = 'rbxassetid://(click detector ID here)' then |
3 | mouse.Icon = 'rbxassetid://163023520' |
4 | end |
You could use the MouseHoverEvent...Keep in mind this is a local script/client side so you’d have to add a remote event to communicate with the server.
01 | local clickDetector = LOCATION_OF_CLICKDETECTOR |
02 | local icon = "rbxassetid://ASSET_ID" |
03 |
04 | clickDetector.MouseHoverEnter:Connect( function (player) |
05 | local mouse = player:GetMouse() |
06 | mouse.Icon = icon |
07 | end ) |
08 |
09 | clickDetector.MouseHoverLeave:Connect( function (player) |
10 | local mouse = player:GetMouse() |
11 | mouse.Icon = "rbxasset://textures/ArrowFarCursor.png" |
12 | end ) |