I am trying to get the MsgBox to pop up when the scoreLeft or ScoreRight reaches 5 points or tie, but it is not instead I have to click on the pushbutton for the Message to appear; do you see anything wrong with the code?
if scoreleft = 5 then
MsgBox “Gongrats, player 1 you’re the #1 of the day!”
end if
if scoreRightt = 5 then
MsgBox “Gongrats, player 2 you win.”
end if
if scoreRight = 5 and ScoreLeft = 5 then
MsgBox “Gongrats, You got a tie.”
end if