Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to TextBounds without using the property?

Asked by
Azarth 3141 Moderation Voter Community Moderator
10 years ago

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?

1
If it's extremely necessary, use a RemoteFunction. Articulating 1335 — 10y
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. AxeOfMen 434 — 10y

1 answer

Log in to vote
-6
Answered by 10 years ago

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...

Ad

Answer this question