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

How to prevent Click Detector Icon Change?

Hello, is there a way to prevent the icon being changed when your mouse hovers over the parent of the ClickDetector. The reason I am using a Click Detect is for the MouseHover function.

1 comment

0

try mouse.Icon (mouse = game.Players.LocalPlayer:GetMouse())

1 answer

No, there is no way to avoid it. But you could use Mouse.Button1Down event.

local Mouse = game.Players.LocalPlayer:GetMouse()

Mouse.Button1Down:connect(function()
if Mouse.Target.Name == "Name" then
--- CODE ---
end
end)

The mouse icon doesnt chage :)

NOTE: It must be in local script.

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