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.