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

How can count String's word?

Asked by 5 years ago

Actually i am making a custom chat ui, but i got some problem. i want to cut the words when they are too long. Is there any regular function of roblox to do it? Thanks for the people who answered me.

1
You can count the length of a string with string.len(), or you can take only a portion of a string with string.sub() awfulszn 394 — 5y

1 answer

Log in to vote
1
Answered by
awfulszn 394 Moderation Voter
5 years ago

String manipulation.

For what you have asked, I'd recommend looking into string.sub() and string.len().

Try reading up on string manipulation here and then come back if you run into any issues with your code, and ensure you post the code so we are able to help you further.

Happy scripting!

0
yeah starmaq 1290 — 5y
Ad

Answer this question