Right now, it just defaults to the Roblox cursor (i have not closed studio yet, so it still uses the 2013 one lol)
But, how to I change it when something happens?
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
while wait (0.1) do
local t = script.Parent:GetDescendants()
for _, instance in pairs(t) do
if instance:IsA("ImageButton") then
instance.MouseEntered:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=7027845989"
end)
instance.MouseLeft:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
end)
elseif instance:IsA("ImageButton") then
instance.MouseEntered:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=7027845989"
end)
instance.MouseLeft:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
end)
end
end
end
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
while wait (0.1) do
local t = script.Parent:GetDescendants()
for _, instance in pairs(t) do
if instance:IsA("ImageButton") then
instance.MouseEnter:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=7027845989"
end)
instance.MouseLeave:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
end)
elseif instance:IsA("ImageButton") then
instance.MouseEnter:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=7027845989"
end)
instance.MouseLeave:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
end)
end
end
end