Ad
Log in to vote
0

How to TextBounds without using the property?

Asked by
Azarth 3118 Moderation Voter Community Moderator
7 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 — 7y
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 — 7y

1 answer

Log in to vote
-6
Answered by 7 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