local mouse = game:GetService("Players").LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset?id="
and basically i want when i hover the mouse over a click detector to change the mouse icon to that 1 but it doesn’t work. In studio when i move my mouse out of the game window in play testing then it changes to that 1…
I don’t know if you’ll respond but it’s worth a try!
local ButtonTable = {} -- Table filled with click detectors of each of the buttons.
for i, v in pairs(workspace:GetDescendants()) do
--v.MouseClick:Connect(function()
if v:IsA("ClickDetector") then
table.insert(ButtonTable,i,v) --Inserts the ClickDetectors into ButtonTable
print(ButtonTable[i])
print("PRINTED")
end
end
local mouseIcon = "5207095807" --mouse icon
local clickIcon = "5207096357" --click detector icon
local clickDetector = ButtonTable --click detector reference
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = mouseIcon
clickDetector.MouseHoverEnter:Connect(function()
mouse.Icon = clickIcon
end)
clickDetector.MouseHoverLeave:Connect(function()
mouse.Icon = mouseIcon
end)
Tried to do what you said but cannot figure out how to make it work? Would appreciate if you could help me understand how I would make this work, many thanks.