Get UIStroke created via StyleSheet

,

I need to modify UIStroke properties on a GuiObject. How do I do this?

1 Like

Erm, access the gui, then the UIStroke and its properties?

The issue is that UIStroke isn’t an Instance, it’s defined through a StyleSheet rule

1 Like
GuiObject ::Object ::UICorner {

}

Replace GuiObject with the screen gui or surface gui or what it is and Object with the label or button type

Docs: https://rsml.style/

I need to modify the UIStroke of a specific object. If I change the rule, it will affect all objects of the “class”

To be honest, I don’t want to adapt to another system - I’m really tired. Anyway, it works with the Roblox API. For now, I think I’ve found a solution: create a separate class with modified UIStroke, then add a tag to the GuiObject