I didn’t explain fully in the title, but basically, what i’m trying to do is change the player mouse icon when they hover over a gui button, and changes back to the custom mouse icon i made. Here’s what code ive tried using:
local ImageLabel = script.Parent
local player = game:GetService("Players").LocalPlayer
local mouse = player:GetMouse()
local connection
local function CheckMouse()
ImageLabel.Position = UDim2.new(0, mouse.X + 10, 0, mouse.Y + 5)
ImageLabel.Visible = false
mouse.Icon = 'http://www.roblox.com/asset/?id=493788843'
local target = mouse.Target
if target and target.Parent then
if target.Parent:FindFirstChild("TextButton") then
connection = target.Parent:FindFirstChild("TextButton").Changed:Connect(function(property)
if property == "Position" or property == "Orientation" then
CheckMouse()
connection:Disconnect()
end
end)
ImageLabel.Visible = true
mouse.Icon = 'http://www.roblox.com/asset/?id='
end
end
end
mouse.Move:Connect(CheckMouse)
When i tried making it instead have no mouse icon when hovering over but then showing an image label so its like a different clicking mouse icon, it didn’t do anything at all, and just had the normal click mouse icon still.