I need help with making a mouse change when hovering over a ClickDetector. I’ve searched around, and only found MounseEnter, which only works for GUIs.
Could anyone point me in the right direction, or give me a snippet/example of code to get me started? I don’t have any idea what to use.
Now, it doesn’t change the mouse at all.
(The ClickDetector is inside a part, inside a human, inside a folder.)
Script is located in StarterPlayerScripts.
Code:
local mouse = game.Players.LocalPlayer:GetMouse()
click = game.Workspace.NPCs.Dummy.Click.ClickDetector
if click.MouseHoverEnter then
mouse.Icon = "(my decal)"
end
When I hover over the thing, the mouse disappears, instead of showing the decal, do you know why?
I can confirm that the decal is indeed working, but it doesn’t show.
You probably formatted the Decal ID wrong. If you just put in the ID in a string, it won’t work.
If you put http://www.roblox.com/asset/?id= right before the ID in the string, it should work just fine.
For example, if the Decal ID was 1234567, you wouldn’t just put mouse.Icon = "1234567", you would put mouse.Icon = "http://www.roblox.com/asset/?id=1234567".
I think I need a screenshot of the raw code. The only thing I can think of now is if you put a space between http://www.roblox.com/asset?id= and your ID.