Penalty for an illegal move
If you end your turn in an invalid way, then your entire turn is reverted and you will have to accept a penalty. In games with a time limit, this can also happen when the time runs out while you are playing.
Draw a number of cards
With this penalty, after your turn has been reverted, you have to draw a number of extra cards.
Skip a number of turns
With this penalty, after your turn has been reverted, you may not play for the next turns.
Games with this rule
In most built-in games in Rummi, you have to draw 3 extra cards as a penalty. The exceptions are Shanghai and Windmill, where you have to skip 3 turns.
In Rummy type games, including Rummikub®, if you do an illegal move you usually have to draw three more cards.