Scripting for Halo 5 Forge Help

I want to make a platform have a boundary on it which would allow the player to stand on said platform for 5 seconds, then they die. But they can jump of and back onto the platform to reset this timer at anytime. Is this possible? Thanks!