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


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

Yes I fixed that the screenshot is a lil outdated sorry bout that

for me it fixed the problem

before


after

is there any more frames you have?

1 Like

The right and bottom side of your second picture still have 1 extra pixel and that makes me very angry :sob:

(dont ask how i can see that well)

do you have an rbxm file of that ui? it would be easier to find a solution

Place3141.rbxl (56.0 KB)
that should do it

1 Like

I can’t see any wrong?

it is obvious, and for some reason Roblox doesn’t have ways to prevent this. so sometimes borders cut off and it’s annoying.

1 Like