Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to change the mouser cursor to the default tool cursor?

Im not sure if it is a rbxassetid and your meant to change the cursor with :GetMouse() and the id or just type a function/property?

Im talking about this:

https://postimg.cc/SjcGYt51

Thanks!

1 answer

When you are going to change the icon of the mouse with a tool you will need to use the Equipped event as well as the Unequipped event of the tool.

local mouse = game.Players.LocalPlayer:GetMouse()
tool.Equipped:Connect(function()
mouse.Icon = "rbxassetid://youridhere"
end)

and then when you unequip just go back to the default mouse.

https://developer.roblox.com/en-us/api-reference/property/Mouse/Icon

2 comments

0

The IDs of the cursor would be "rbxasset://textures/GunCursor.png" and "rbxasset://textures/GunWaitCursor.png"

0

I was looking for what Squid said sorry uhi

This discussion is preserved as it was. New answers, comments, and votes are closed.