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

How to make a different mouse icon for ClickDetector hovering?

I made a custom mouse pointer and i've seen in games where that there is a different mouse pointer for ClickDetector hovering instead of the default one, and I want to know if there is something I can do for that. (Don't mind the CoreGuiEnabled lines)

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false)

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "rbxgameasset://Images/NewMouse5"

local uis = game:GetService("UserInputService")

function onHover()
	mouse.Icon = "rbxgameasset://Images/NewMouse5"
end

function onExit()
	mouse.Icon = "rbxgameasset://Images/NewMouse5"
end

uis.TextBoxFocused(onHover)
uis.TextBoxFocusReleased(onExit)

1 comment

0

if mouse.Target == "something" then mouse.Icon = asset end

1 answer

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