local messages = {
"Visit our website at www.google.com!",
"Did you know? These messages are automated!",
"Add another message here!"
}
local prefix = "[INFO] #FFFFFF" -- message prefix
local interval = 5 -- time between messages (minutes)
function outputRandomMessage()
local msg = messages[math.random(#messages)]
outputChatBox(prefix .. msg, root, 3, 169, 244, true)
end
setTimer(outputRandomMessage, interval * 60 * 1000, 0)
Output looks like:
[INFO] Did you know? These messages are automated!
Are you looking for something like this? Or what do you mean by words loop.