hey... so im working on a horror game, and i wanted to change the players cursor to a simple black dot, and then once they hover over ANY ClickDetector, then it would change to a simple hand icon, and then back again once it is NOT hovering over a ClickDetector.
im not fantastic at scripting, and im honestly suprised there is no easier way to change such a practical thing, but Roblox do what Roblox do...
any help would be great.
You can try these 2 local scripts I use, of course replace ""whatever"" with the Asset ID you need. You'll need to put them into StarterGUI.
01 | function Search(ItemToSearch) |
02 | for i, v in pairs (ItemToSearch:GetChildren()) do |
03 | if v:IsA( "ClickDetector" ) then |
04 | v.MouseHoverEnter:connect( function (Player) |
05 | local Mouse = Player:GetMouse() |
06 | Mouse.Icon = "whatever" |
07 | end ) |
08 | v.MouseHoverLeave:connect( function (Player) |
09 | local Mouse = Player:GetMouse() |
10 | Mouse.Icon = "whatever" |
11 | end ) |
12 | end |
13 | Search(v) |
14 | end |
15 | end |
16 |
17 | Search(workspace) |
I don't know if a professional would recommend this, but atleast it works for me.
1 | local mouse = game.Players.LocalPlayer:GetMouse() |
2 |
3 | local texture = "whatever" |
4 |
5 | mouse.Icon = "whatever" |