menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
remove the first 5 characters of a string
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
remove the first 5 characters of a string
gaberocksall
Join Date: 2016-04-23
Post Count: 207
#228401498
Sunday, December 03, 2017 10:07 PM GMT
how would i remove the first 5 characters of every string (there will be no string with less than five characters, so no errors) for example: x = "How is it going" what needs to go here? print (x) >"s it going"
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Vulkarin
Join Date: 2013-03-17
Post Count: 282
#228401570
Sunday, December 03, 2017 10:08 PM GMT
x = string.sub(x, 6, #x)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
gaberocksall
Join Date: 2016-04-23
Post Count: 207
#228401733
Sunday, December 03, 2017 10:12 PM GMT
thanks, works like a charm
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right