Epic_onee
(Epic_onee)
December 1, 2024, 8:09pm
1
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
Your code is correct. Only possible explanation I can think of is that you need to make your image public.
1 Like
2112Jay
(2112Jay)
December 1, 2024, 10:43pm
7
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
Epic_onee
(Epic_onee)
December 1, 2024, 10:46pm
8
Yeah I tried making the picture public and it also didn’t work
1 Like
Epic_onee
(Epic_onee)
December 1, 2024, 10:48pm
9
Hm I’ll try that and I’ll mark it as a solution if it works, otherwise I’ll respond back
2 Likes
Epic_onee
(Epic_onee)
December 1, 2024, 10:52pm
10
Oh wait I forgot to mention when I play test it defaults to the default Roblox mouse icon (updating post rn)
2 Likes
2112Jay
(2112Jay)
December 1, 2024, 10:52pm
11
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
Epic_onee
(Epic_onee)
December 2, 2024, 3:53pm
13
I copied the url from an image id and that worked I guess, thanks!
system
(system)
Closed
December 16, 2024, 3:54pm
14
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.