Hi, I'm trying to write a script consisting with the Twitch command /color, but for some reason it's not giving me anything. The script works with $rand, and each line as a different color code for whenever I speak in a Twitch chat. Here's what I have down so far:

on *:TEXT:*:#: {
if ($nick == Bestpeff) {
Var %random = $rand(1,3)
:1 | msg /color #1FF8FF | return
:2 | msg /color #FF0000 | return
:3 | msg /color #0FC99A | return
}
}

Help would be appreciated, thanks (: