If you're using Roblox you can switch the ScaleType to Slice in an ImageLabel or ImageButton and then set the 9 slice regions. There's usually a 9 slice option in other game engines as well.
im using gamemaker rn it has a nine-slice but its really big i wanna scale it down im sorry long reply
i want to nine-slice it but i have to scale it down but it breaks the nineslice in gamemaker