Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

A Long Script Into A Short Script?

Hello there! I have a really long script and I want to make it to a short script. As I know it is called a loop? I am still learning LUA and don't know how to do it. Here is the script:

M = Instance.new("Message")
M.Parent = game.Workspace
M.Text = "L"
wait(0.1)
M.Text = "1"
wait(0.1)
M.Text = "2"
wait(0.1)
M.Text = "3"
wait(0.1)
M.Text = "4"
wait(0.1)
M.Text = "5"
wait(0.1)
M.Text = "6 "
wait(0.1)
M.Text = "7"
wait(0.1)
M.Text = "8"
wait(0.1)
M.Text = "9"
wait(0.1)
M.Text = "10"
wait(1)
M.Text = ""
x.Parent = game.Workspace
wait(3)
M:Remove()

How do I make it really short?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.