Hello! So I’m trying to make a custom mouse for the player while their on the computer for some reason, Its not working, No errors
-- Created a Custom Player Cursor
game.Players.LocalPlayer:GetMouse().Icon = "rbxassetid://4793746554";
Hello! So I’m trying to make a custom mouse for the player while their on the computer for some reason, Its not working, No errors
-- Created a Custom Player Cursor
game.Players.LocalPlayer:GetMouse().Icon = "rbxassetid://4793746554";
I believe GetMouse is a function to get inputs from the user’s mouse. Such as left and right buttons, movement, and location. The only way I found that you can change your mouse cursor is with a Plugin.
You can look more about it with this link:
I mean for the player, so are you sure of if it is only just for Roblox studio?
else this would be very useless in my case.
That led me to a whole entire error page…
Well i cant help you then. Thats what worked for me?
Try this:
game.Players.LocalPlayer:GetMouse().Icon = "http://www.roblox.com/asset/?id=4793746542";
This worked and all… BUT WHY IS THE MOUSE SO BIG?
Also, The custom cursor goes away whenever I hover over something else
Insert an ImageLabel and set the image to the icon cursor and insert localscript into it and put this:
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Icon = script.Parent
UserInputService.MouseIconEnabled = false
if UserInputService.MouseEnabled then
RunService.RenderStepped:Connect(function()
local MouseLocation = UserInputService:GetMouseLocation()
Icon.Position = UDim2.new(0, MouseLocation.X, 0, MouseLocation.Y)
end)
else
Icon.Visible = false
end
Also set the mouse’s ZIndex higher than the other UI elements of your game.