01 | local cd = game.Workspace.Rain.ClickDetector |
02 | cd.MouseClick:connect( function () |
03 | local m = game.Players.LocalPlayer:GetMouse() |
04 | m.Icon = "http://www.roblox.com/asset/?id=241876428" |
05 | end ) |
06 |
07 | local sd = game.Workspace.Rain.ClickDetector |
08 | sd.MouseLeave:connect( function () |
09 | local m = game.Players.LocalPlayer:GetMouse() |
10 | m.Icon = "http://www.roblox.com/asset/?id=30656108" |
11 | end ) |
What I think is wrong:
I think you need to fix 2 things.
1) The first function has the sound playing on Click, while the other one is when the mouse is leaving. I would say change ".MouseClick" to ".MouseHoverEnter"
2) The second function is telling it do something when a ".MouseLeave" occurs, but that doesn't exist. It should be ".MouseHoverLeave" like in the first one.