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

How can count String's word?

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 comment

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()

1 answer

✓ Accepted answer

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!

1 comment

0

yeah

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