How would I make more "i's" the higher the numbervalue is?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? So basically if there is a 1 in the numbervalue it outputs “I”, if theres a 2 its “II”, if theres a 3 its “III”, etc etc.

  2. What solutions have you tried so far? I have tried on my own and I have looked at the dev forum.

You don’t have to write a script for me. But you could give me the page that describes how to do it.

1 Like

Try to read the number and use a numeric for loop, then append an I to an empty string every loop cycle.

Is there any other way to do it?

Reason I’m asking is because I can’t seem to figure out what you meant and it sounds hard to do.

In theory, yes, but it’s a lot less efficient than this system.

local length -- this is your value
local out = ""

for iter=1,length do
     out ..= "i"
end

print(out)
2 Likes

Oh I didn’t know it was that easy to do. Thank you so much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.