Mouse icon wont load/appear

I’m trying to do a custom mouse icon but when I play test my game my mouse won’t appear or load
There’s no errors on the output
The script is on StarterGUI
During play testing it defaults to the default Roblox mouse icon.
Here’s my code:

game.Players.LocalPlayer:GetMouse().Icon = "rbxassetid://85778712921933"

Code examples or fixed versions will be appreciated!

2 Likes

Hey, This worked for me :

local Players = game:GetService("Players")

local player = Players.LocalPlayer

local mouse = player:GetMouse()

mouse.Icon = "YOUR ID" 

-- ID i Test it // http://www.roblox.com/asset?id=163023520
1 Like

The problem I found is that your ID does not exist or does not show anything.

1 Like
2 Likes

Your code is correct. Only possible explanation I can think of is that you need to make your image public.

1 Like

I tried it a few ways… then went back to your code and that worked also. It must be your picture.
Try a Size: 64x64 pixels .PNG

works fine

task.wait(3)
game.Players.LocalPlayer:GetMouse().Icon = "rbxassetid://10851697132"
1 Like

Yeah I tried making the picture public and it also didn’t work

1 Like

Hm I’ll try that and I’ll mark it as a solution if it works, otherwise I’ll respond back

2 Likes

Oh wait I forgot to mention when I play test it defaults to the default Roblox mouse icon (updating post rn)

2 Likes

I think Madinik_games was right on the mark here, before me.

1 Like

Yeah, Move the script to StarterPlayer → StarterPlayerScripts

If the picture still does not work, you can try the following.

Create a Image Label And upload your Picture again. Afterwards you can copy the url from the Image Label.Image into the script.

3 Likes

I copied the url from an image id and that worked I guess, thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.