Can someone please tell me why the UI Stroke has weird thickness on other devices..?


I have no idea why the thickness is larger on one side and shorter on another…

1 Like

The thickness of a UIStroke is based on offset, which essentially equals pixels on the screen. Mobile devices often have fewer pixels, resulting in thinner or sometimes invisible strokes on smaller screens

Do you know a way to fix this?

can you show me, how you want it to be?

Can you send me a file of ur ui?

i missunderstood at the begining

image
image
do you need more things?

1 Like


this is the image label

try removing the ui aspect ratio and use scale instead

can you send me a file of your ui?

oh like a roblox file? sure give me a second

btw here is the result: (kinda looks the same as before)

1 Like

Don’t remove the UI Aspect Ratio. Instead insert a UI Aspect Ratio into the UI stroke and customize it to your desired representation.

It’s just how Roblox designed it, unfortunately. That said, you can use this: UIStrokeAdjuster - Properly scale your UIStrokes!

Edit: looking at the person’s code, the thing that actually matters is accounting for the screen ratio, which is also what the ‘UI Aspect Ratio Constraint’ does. This works for ScreenGuis but not Billboard GUIs, so they also accounted for distance for that. In short, either adding the constraint or the resource should work.

3 Likes

Hmmm I should try that, I tried something like that before but I guess it was not made well because it still had problems

i just remade your UI in my own project and i think i know what the problem is

Change “BorderSizePixel” to 0
image

If the thing @Reditect was talking about does not work I will send it to you

it is at zero already, I think this is a roblox issue so I will try the module @Reditect was talking about

Insert a UIAC into the Stroke, Image, label, etc… and frame and it should work
Then test it out on different devices using the Test tab and going to devices. just tested

1 Like

not in the image you showed?

Yeah that made it better but you can still see a problem with the stroke