Custom Cursor Script Isn't Working

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";
1 Like

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:

1 Like

Try changing the url to this: "“http://www.roblox.com/asset?id=4793746554"”

1 Like

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…

1 Like

Well i cant help you then. Thats what worked for me?

Your sure?

Uploading: Screenshot 2021-08-02 220038.png…

Try this:

game.Players.LocalPlayer:GetMouse().Icon = "http://www.roblox.com/asset/?id=4793746542";
2 Likes

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.

1 Like