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
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)