How To Change a Player's Mouse Icon (Quick Tutorial #2)

This is a very quick read on how to change a player’s mouse cursor in Roblox Studio!

Short Breakdown

Here are some notes / requirements for the tutorial to work!

  • Must be done from a local script
  • Must have a valid image ID
  • Must have no other scripts interfering!

Now, onto the script itself!

Actual Tutorial

First, we will start by declaring the player.

local Player = game:GetService("Players").LocalPlayer

Next, we need to get the players mouse like so:

local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()

Finally, we will change the cursor. Make sure you have a valid decal ID ready.

local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()

Mouse.Icon = "rbxassetid://0000000" -- Put Your Asset ID Here.

And you’re done! Congrats you made it :confetti_ball: :clinking_glasses:

Script For Lazy Readers
local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()

Mouse.Icon = "rbxassetid://0000000" -- Put Your Asset ID Here.

Thank you for reading, and please drop me a follow on Roblox! :woot:

10 Likes

but what if i want to work with this icon later? For example, when player clicks the left mouse button the icon rotates slightly?

I mean, you could just use Mouse.Button1Down function and Mouse.Button1Up function that makes it switch to another image of the rotated mouse? scripting it so that the actualy mouse itself would rotate without changing the icon would just make it too difficult