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

I can use touched and touchended only TouchEnded is unreliable.
I made an “inside” and “outside” box that detects when the player is standing on the platform.


Only this can also be inefficient and doesn’t solve my issue.
Any good method?
Basically I want it to repeat a function while the player is on the platform, and stop repeating it when they get off of it.

Edit:

Found this useful.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.