This seem to work perfectly when I play in a test world, however; it does not work at all when I am testing the server with multiple people. What am I doing wrong?
Script in Workspace
--Normal script local mouse = game.Players.LocalPlayer:GetMouse() --Change the cursor when hovering over an object script.Parent.MouseHoverEnter:connect(function(player) mouse.Icon = "http://www.roblox.com/asset/?id=652181258" end) --Change the cursor when leaving the object script.Parent.MouseHoverLeave:connect(function(player) mouse.Icon = "http://www.roblox.com/asset/?id=652178724" end)
Localscript in StarterGui
--Localscript in StarterGui > ScreenGui local mouse = game.Players.LocalPlayer:GetMouse() mouse.Icon = "http://www.roblox.com/asset/?id=652178724"
You cannot access the Mouse
object from the server. Execute all your code on the client for this to work.
--Localscript local mouse = game.Players.LocalPlayer:GetMouse() --Change the cursor when hovering over an object script.Parent.MouseHoverEnter:connect(function(player) mouse.Icon = "http://www.roblox.com/asset/?id=652181258" end) --Change the cursor when leaving the object script.Parent.MouseHoverLeave:connect(function(player) mouse.Icon = "http://www.roblox.com/asset/?id=652178724" end)