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

How do you make mouse's icon smaller ?

Asked by
Bulvyte 388 Moderation Voter
8 years ago

So this is a script when player equips gets an icon. But this icon is fitting its whole screen. lol how do i make it like a normal mouse icon ? not very small but normal size. i just don't know how to resize icons

local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
    if not enabled then
        return
    end

    enabled = false
    mouse.Icon = "http://www.roblox.com/asset/?id=121173757"

    wait(5)
    mouse.Icon = "http://www.roblox.com/asset/?id=121173757"
    enabled = true

end

function onEquippedLocal(mouse)
    script.Parent.Handle.Equip:Play()
    if mouse == nil then
        print("Mouse not found")
        return 
    end
    mouse.Icon = "http://www.roblox.com/asset/?id=121173757"
    mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)

thank youuu!

1 answer

Log in to vote
3
Answered by 8 years ago

The mouse icon's size is dependent on the image's screen resolution. You can fix this issue by re-sizing the image in some kind of image editor program (i.e, paint.net, windows paint, etc.)

0
okay, thanks Bulvyte 388 — 8y
Ad

Answer this question