Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make ClickDetector not show Mouse icon?

Asked by 9 years ago

function click()

if script.Parent.BrickColor == BrickColor.new(1003) then script.Parent.BrickColor = BrickColor.new(1) else script.Parent.BrickColor = BrickColor.new(1003) end end

script.Parent.ClickDetector.MouseClick:connect(click) ClickDetector script

1 answer

Log in to vote
2
Answered by
BlackJPI 2658 Snack Break Moderation Voter Community Moderator
9 years ago

If you are asking how to change the ClickDetector's default mouse icon, you can simply change the icon of the mouse when someone hovers over it using the MouseHoverEnter function.

local clickDetector = game.Workspace.Part.ClickDetector -- Location of ClickDetector

clickDetector.MouseHoverEnter:connect(function(player)
    player:GetMouse().Icon = "rbxasset://textures//ArrowCursor.png" -- Change this to any Icon you'd like
end)

clickDetector.MouseHoverLeave:connect(function(player)
    player:GetMouse().Icon = "rbxasset://textures\\ArrowFarCursor.png" -- Change this to any Icon you'd like
end)
Ad

Answer this question