if I had a string that was 75 characters long for example would it be possible to cut that down to the first 50 characters via a script in any way, and if so, how?
3 Likes
You’d use string.format()
.
local info = "Hi! I like eating.. pizza!" -- (26 characters.)
info = string.format("%.18s", info)
print(info) -- Output: Hi! I like eating.
1 Like
the specifier itself seems to be wrong but ill look into messing around with this
It is wrong. I forgot to put a “s” behind the “18.”
1 Like
yep that did the trick thanks for the help
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.