Custom Cursor too big

2 issues, keep reading!

Hi!

I;m having 2 issues with my custom cursor script.
It’s just the standard one.

Issue 1: Too big!

This is a pretty big problem.


How can I downsize it?

Issue 2: how do QI change the hovering cursor?

Right now, it just defaults to the Roblox cursor (i have not closed studio yet, so it still uses the 2013 one lol)
But, how to I change it when something happens?

Thanks for any help on both issues!

4 Likes

Whats the size of the cursor image?
The size of cursor image needs to be small

2 Likes

How small (pixels)?

I was guessing 512x512, but then I remembered it was the Windows Task bar image size.

3 Likes

I searched now and is 32x32 the normal cursor image

It can be 32x32 (normal) or 48x48 or 64x64

4 Likes

Great, do you have a answer for the second issue?

2 Likes

The second issue I don’t know.

1 Like


Ok, but is there a better weay about this?

local mouse = game.Players.LocalPlayer:GetMouse()

mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"

while wait (0.1) do
	local t = script.Parent:GetDescendants()

	for _, instance in pairs(t) do

		if instance:IsA("ImageButton") then
			instance.MouseEntered:Connect(function()
				mouse.Icon = "http://www.roblox.com/asset/?id=7027845989"
			end)
			instance.MouseLeft:Connect(function()
				mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
			end)
			elseif instance:IsA("ImageButton") then
				instance.MouseEntered:Connect(function()
					mouse.Icon = "http://www.roblox.com/asset/?id=7027845989"
				end)
				instance.MouseLeft:Connect(function()
					mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
				end)
		end



	end

end
2 Likes

Try use MouseEnter instead of MouseEntered

2 Likes

Ok now, there isn’t a reason this shouldn’t work.

local mouse = game.Players.LocalPlayer:GetMouse()

mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"

while wait (0.1) do
	local t = script.Parent:GetDescendants()

	for _, instance in pairs(t) do

		if instance:IsA("ImageButton") then
			instance.MouseEnter:Connect(function()
				mouse.Icon = "http://www.roblox.com/asset/?id=7027845989"
			end)
			instance.MouseLeave:Connect(function()
				mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
			end)
			elseif instance:IsA("ImageButton") then
				instance.MouseEnter:Connect(function()
					mouse.Icon = "http://www.roblox.com/asset/?id=7027845989"
				end)
				instance.MouseLeave:Connect(function()
					mouse.Icon = "http://www.roblox.com/asset/?id=7027810711"
				end)
		end



	end

end
1 Like

I don’t see any error, so I don’t know

1 Like

Hello DarkPixlz, for custom cursors, the mouse image is correspondent to the pixel size of the image provided.

If you give me your image, I can resize it for you.

I resized the image I found in your inventory to be 48 by 48 pixels:

Png (3) (1)

1 Like

Yeah, I made it 58x58 on purpose, bc the 8x48 is too small.

1 Like

Here’s 58 by 58 if you need: Png (3) (2)

1 Like

Thanks, I already have it in my game.

Making a new post now with my mouse hover over problem.

1 Like