Text(Label/Box/Button):GetTextScaledApproximateSize()

wrt. editing client gui from the server:

Don’t edit UI form the server. Use remotes. Adding the feature that you want would be a footgun and would just encourage bad coding practices.