Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rainbow(args)
- local str = ""
- local colours = { "|cFF0000", "|cFF6600", "|cFFEE00", "|c00FF00", "|c0099FF", "|c4400FF", "|c9900FF" }
- local pass = math.random(7)
- for char in args:gmatch"." do
- if char == " " then
- str = str .. char
- else
- str = str .. colours[pass] .. char
- if pass == #colours then pass = 1 end
- pass = pass + 1
- end
- end
- return hecho(str)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement