How would I detect when a player is constantly standing on a platform until they get off it?

Edit:

Found this useful.