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

How to change mouse cursor?

Asked by 6 years ago

I've been trying to make a game where the mouse cursor is different. For example, Phantom Forces has a mouse cursor that is different from the default one. I've tried this script but it doesn't work.

ocal mouse = game.Players.LocalPlayer:GetMouse()
mouse.icon = 'rbxassetid://117431028

Some people say use "ImageID" I used a decal How do I get an imageID?

0
Oops I forgot to add the l TheEliteYoutuber0241 -14 — 6y
0
Are you sure you are using a correct roblox Asset Id? Can you send a link to the decal you want the icon to be? Z_DC 104 — 6y
0
you forgot to add the l and " Nickelz 37 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

The mouse icon must be expressed in a string so it should be like this:

local Mouse =game.Players.LocalPlayer:GetMouse()
Mouse.Icon = "rbxassetid://117431028"
Ad

Answer this question