Mouse Cursor Image failed to load?

script.Parent.Submit.Button.MouseButton1Click:connect(function()
	if tonumber(script.Parent.cursorValue.Text) ~= nil then
		print(script.Parent.cursorValue.Text)
		currentCursor = 'rbxassetid://'..script.Parent.cursorValue.Text
		print('yo '..currentCursor)
		localMouse.Icon	= currentCursor
	else
		unselectall()
		print('No integer found')
	end
end)

Any idea what could be causing this?

It’s because this is a decal, and not an image:

You’re effectively doing mouse.Icon = Instance.new("Decal"). Instead, you want to use the Image:

Previously this could be obtained by subtracting 1 from the decal’s ID, but assets are uploaded so fast now that it can be 10 or more behind the decal. The easiest way now is to paste the decalId (in this case, 1872002727) into an ImageLabel or Decal Image property, and Studio will auto-convert it to the imageId (in this case, 1872002722)

5 Likes

Was looking to do this with a GUI so that players could use custom cursors for weapons, however scripts can’t do what you described. Going to use a webserver or something to get the ID’s. Thanks anyway.

1 Like

BTW, feature request that might interest you

1 Like