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

How to make a different mouse icon for ClickDetector hovering?

Asked by 5 years ago

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)

0
if mouse.Target == "something" then mouse.Icon = asset end greatneil80 2647 — 5y

1 answer

Log in to vote
-1
Answered by 5 years ago

Read this. Have a good day :).

0
LOL greatneil80 2647 — 5y
0
omg....... lmao okay I really wanna downvote this.. greatneil80 2647 — 5y
0
i dont have 100 reputation yet argh HappyTimIsHim 652 — 5y
Ad

Answer this question