Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i edit the look of my mouse?

Asked by 9 years ago

Ive seen many games so far. i could list them, if you want. but the number one thing i noticed. is that the mouse looked difrent. instead of a arrow. it was a dot. or something else how can i change the look of the mouse. i want to make like a creative look to it. for instance a circle that changes colors. i dont want to go farther then that. because i know this isnt a request site. could a scripter help me?

1 answer

Log in to vote
2
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

Mouse objects have an Icon property which is the URL to use for the image of the mouse's cursor.

You can set this for Mouse objects made from Tools or HopperBins. (From their respective Equipped and Selected events)

It is currently unsettable on PlayerMouse objects (those gotten from the GetMouse method on players) though this will probably eventually change.

Remember:

The icon is an asset URL, which will look like "rbxassetid://000000" or "http://www.roblox.com/?assetid=00000". The mouse object has to be gotten from an Equipped or Selected event from a Tool or HopperBin respectively. Since Icon is a property, also remember that it must be capitalized, .Icon NOT .icon


If you had a Tool that you wanted to have a different icon, it could look something like this: (This assumes the script is parented directly inside the Tool object)

function Equipped(mouse)
    mouse.Icon = "rbxassetid://12699761";
end
script.Parent.Equipped:connect(Equipped)

Note that id 12699761 refers to the image corresponding to the decal 12699762. The image is usually the ID of the decal minus one or two. If you don't want to figure that out, you can just insert the decal from the toolbox and take the Texture property of it from the Properties box.

0
wait, so whats the script? mouse.icon = "decal name" ??? legoson7 70 — 9y
0
can u post what the script 'should' look like on another answer? so i can get a good perspective. legoson7 70 — 9y
0
no no no. that script is of course helpful, keep that. but i just want to make it where, when you join the server, the icon changed. by icon i mean mouse.but please. dont delete that first script. its helpful legoson7 70 — 9y
0
The PlayerMouse's icon still isn't editable, so that isn't possible. You can force a user to equip a tool and hide the toolbox, but you currently cannot set the icon without a tool or hopperbin. BlueTaslem 18071 — 9y
0
how can i do that? legoson7 70 — 9y
Ad

Answer this question