Tokio Posted March 3, 2018 Share Posted March 3, 2018 I want make a script, which make shorten the dx text. For example: if the dx text is "This is the dxtext", show instead of "This is the dxtext" -> "This is th...". How to make this? Sorry for my very bad english. Link to comment
Tokio Posted March 4, 2018 Author Share Posted March 4, 2018 1 hour ago, robod said: use string.find do you show an example? Link to comment
Jayceon Posted March 4, 2018 Share Posted March 4, 2018 local text = "This is the dxtext" local charactersVisible = 10 text = string.sub(text, 1, charactersVisible) .. "..." iprint(text) 1 Link to comment
Tokio Posted March 4, 2018 Author Share Posted March 4, 2018 17 minutes ago, Jayceon said: local text = "This is the dxtext" local charactersVisible = 10 text = string.sub(text, 1, charactersVisible) .. "..." iprint(text) Thaaanks :DDDD Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now