|
I suppose you could do this by changing the Icon, which works but isn’t practical because it will change back when you hover a button or something. Instead turn off the Mouse: UserInputService.MouseIconEnabled = falseThen you could make an image follow the mouse: mouse.Move:Connect(function() Image.Position = UDim2.new(0, Mouse.X, 0, Mouse.Y) end)It may not be centered, to do that change the anchor point to 0.5,0.5
Make sure the Zindex is higher than all other UI’s so the mouse doesn’t go under. Full script: local inputServ = game:GetService("UserInputService"); local players = game:GetService("Players"); local player = players.LocalPlayer; --player local mouse = player:GetMouse(); -- mouse local Image = -- put directory here inputServ.MouseIconEnabled = false; -- disables the mouse icon (makes the mouse 'invisible') mouse.Move:Connect(function() -- fires when the mouse moves Image.Position = UDim2.new(mouse.X, 0, mouse.Y, 0); -- Changes image position to the mouse position end) (责任编辑:) |

