Jump to content

[HELP] How to make this script?


Tokio

Recommended Posts

Posted

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

Posted
local text = "This is the dxtext"
local charactersVisible = 10
text = string.sub(text, 1, charactersVisible) .. "..."
iprint(text)

 

  • Thanks 1
Posted
17 minutes ago, Jayceon said:

local text = "This is the dxtext"
local charactersVisible = 10
text = string.sub(text, 1, charactersVisible) .. "..."
iprint(text)

 

Thaaanks :DDDD

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...