Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to TextBounds without using the property?

I'm scripting a global leaderboard with data store, so I can't use a localscript, which means I can't use the TextBounds property. What else can I do to match the length of the GUI to the end of the labels last letter?

2 comments

1

If it's extremely necessary, use a RemoteFunction.

0

Always use localscript when building UIs. There are ways of getting data from the server to the client for this exact purpose. As @Articulating mentions, RemoteFunction.

1 answer

Hmm... Create your own function? (count the number of pixels used for each character) OR (no idea if can work) use a localscript to get the value, and send it to the real script...

This discussion is preserved as it was. New answers, comments, and votes are closed.