i have changed the default mouse icon by using a local script but now when i hover above click detectors the cursor icon i set doesnt work? iv done some research and this is a roblox issue im just asking here if theirs a way to circumvent this problem
local m = player:GetMouse()
m.Icon = "http://www.roblox.com/asset/?id=569021388"
yeah i was but iv done research and CursorIcon is pretty buggy from looking at other posts, if you assign your own mouse icon then it doesnt seem to work? i’m just tryna see if theirs anyway to get around this.
local Mouse = Player:GetMouse()
Mouse.Move:Connect(function()
local MouseHovering = Mouse.Target
if not MouseHovering then return end
if not MouseHovering:IsA("MeshPart") and not MouseHovering:IsA("BasePart") and not MouseHovering:FindFirstChildOfClass("ClickDetector") then return end
Mouse.Icon = "icon"
end)
the solution you gave me kinda just switches the icon permanately instead of only doing it whilst hovering and im not really sure how i could modify it to work sorry for the reply
local Mouse = Player:GetMouse()
Mouse.Move:Connect(function()
local MouseHovering = Mouse.Target
if not MouseHovering then return end
if not MouseHovering:IsA("MeshPart") and not MouseHovering:IsA("BasePart") then
Mouse.Icon = "NormalIcon"
return
end
if MouseHovering:FindFirstChildOfClass("ClickDetector") then
Mouse.Icon = "ClickDetectorIcon"
else
Mouse.Icon = "NormalIcon"
end
end)
You could use a loop to check if the mouse target has a click detector inside it?
local mouse = game.Players.LocalPlayer:GetMouse()
game:GetService("RunService").RenderStepped:Connect(function()
if mouse.Target:FindFirstChildOfClass("ClickDetector") then
mouse.Icon = "HoverIcon"
else
mouse.Icon = "Normal"
end
end)