Page 1 of 1

[2.0.72] Reading LuaGuiElement.style.width does not work

Posted: Thu Dec 04, 2025 4:20 am
by protocol_1903
First, yes I know .width is not a valid parameter for read but it makes more sense in the title (imo it should be readable as the current width/height but thats a feature request). I have attempted to read natural_width, minimum_width, and maximum_width of a newly created frame and button element and all of them return nil. I assume the same goes for height(s variants) but I haven't tested to be sure.

Re: [2.0.72] Reading LuaGuiElement.style.width does not work

Posted: Thu Dec 04, 2025 8:06 am
by Rseding91
Thanks for the report however this is not a bug. If those values have not been set on the style being used then that’s what you get back.

Re: [2.0.72] Reading LuaGuiElement.style.width does not work

Posted: Thu Dec 04, 2025 6:26 pm
by protocol_1903
Shouldn't it report back whatever the style default is for natural_width, minimum_width, and maximum_width?

Re: [2.0.72] Reading LuaGuiElement.style.width does not work

Posted: Thu Dec 04, 2025 7:24 pm
by Rseding91
It does. The default is "unset".