Ive messed around with your Script, it is indeed very accurate, But, i have found a issue with it, it seems, that in some cases it isnt capable of detecting when a player leaves a area, in my case, i have linked it to a system that plays music and shows a gui on screen when a player enters a area, but sometimes, it just does not detect when the player leaves and the music keeps going forever
Any idea of how i could fix this issue, it is a problem, since my game is suposed to run with 50 player servers and only having two players breaks it