So yesterday with the help of some here I made a zone which gave you points (leaderstat) for being inside, I even marked it as solved as it worked perfectly. Today however it no longer works, instead it starts giving you points when you’re touching the part but doesnt stop when you leave the part.
Do you have an idea how to solve this? When using the script without the while true do it adds points for a few seconds and then just stops (even if theyre in the zone) so im not sure how to make it so it continously adds points but then stops when the player leaves
You would most likely want to wait for a .Touched event to fire, then continually loop to check the results of WorldRoot:GetPartBoundsInBox to check if player(s) are still inside the box. If not, then break the loop.