Here is my code:
If Left(Text, InStr(Text, " ")) = "!num " Then
End If

If Val(Mid(Text, InStr(Text, " "))) = 0 Then
Exit Sub
End If

If Number = 0 Then
Number = (Rnd(Time) * 50) + 1
End If

If Val(Mid(Text, InStr(Text, " "))) = Number Then
BRBot.SendText Handle & " guessed the right number"
Number = 0
End If

If Val(Mid(Text, InStr(Text, " "))) > Number Then
BRBot.SendText "Lower than " & Val(Mid(Text, InStr(Text, " ")))
End If

If Val(Mid(Text, InStr(Text, " "))) < Number Then
BRBot.SendText "Higher than " & Val(Mid(Text, InStr(Text, " ")))
End If


When a person gets to say !num 6 it will say "higher then 6" and then they guess !num 8 and it will say "lower then 8" then they'd guess !num 7 and it would say "lower then 7" now thats obviously messed up. Someone help?