local str0 print ("Lets say this is the example") print (str1)
local str1 print ("Lets say this is the second example") print (str0)
end
local str0 for x=1, 99999999999999999999 do print ("Hello world, you are being ADDOS'd") print (str1)
local str1 print ("Hello world, you are being ADDOS'd") print (str0)
local str2 print ("Game is a game and is used to identify a block .3.")
local str3 print (" With out using the game or workshop command you will probably fail with scripting.")
print (str2) print (str3)
function YouCanRepeatMe () print ("You're trapped") print ("Have fun >:3") print ("Find a way out") end
Alright so I'm trying to make a script that goes forever, I read on the wiki that with loops you could make something go forever or something like that. I wanted to do that just compact and it didn't stop after the specified number of messages were sent (The lines before the first "end"). The way I wanted it to work was that it would say the string of text and then go to the next string (on the second one, the one below the first "end") and then when that string was finished it would go to the one above and repeat forever and ever, when I tried it out it said "Lets say this is the example" (not in quotes) and then then "Lets say this is the second example" (same thing, no quotes) with a nil in between I understand that nil mean zero, or nothing but then it just stop, and I would like to know why it does that, I'm a novice scripter and I thank you in advanced for helping me with this problem ^^
You must start off your script with "while true do" to make the loop. Or, you could say something like:
a = 5 while a > 1 do end
Make sure you close it with "do." I hope I helped! :) Comment if you have a question.