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

My mouse cursor icon won't change, anyone know how to do it correctly?

Asked by
SCP774 191
6 years ago

This is my script that changes the mouse cursor icon:

The problem is, it doesn't change the mouse icon. Do anyone knows how to change the cursor icon correctly?

It's a localscript, so yeah.

Here's my full script:

001--[[
002    Made by TheRobloxPlayer2509
003    Private gun script
004--]]
005 
006repeat wait()
007until script.Parent.Parent.Parent:IsA("Player") or script.Parent.Parent.Parent:IsA("Model")
008--Defines
009local tool = script.Parent
010local config = tool.Configuration
011local clip = config.ClipSize
012local unlimited = config.Unlimited
013local reserve = config.Remain
014local remote = tool:WaitForChild("RemoteEvent")
015local plr = game.Players.LocalPlayer
View all 196 lines...

1 answer

Log in to vote
2
Answered by 6 years ago
Edited 6 years ago

It may be because you're assigning a DecalId to the property. Rather assign the ImageId of it.

mouse.Icon = "rbxassetid://166736755"

0
10:03:50.315 - Image "https://assetgame.roblox.com/asset/?id=166736756" failed to load in "Mouse Cursor": Request failed, I just got this output. SCP774 191 — 6y
0
Thanks! I got it working now. SCP774 191 — 6y
Ad

Answer this question