I don't know how to explain, but I really need help

  1. What do you want to achieve?
    I’m trying to make a item despawn thing

  2. What is the issue?
    if its just you then you leave the area, it the despawn the items but if there is more players then it will still despawn items when there is more players I’m trying to make where it does not despawn when there is more players

if you are confused then look at this example I made

What I want it to be:
Player = 1 - the items despawn
Player = 1-10 - the items despawn when all the players are out of the area

What I don’t want it to be:
Player = 1 - the items despawn
Player = 1-10 - if one player leave it despawn all the items

  1. What solutions have you tried so far?
    Region3
    Touch

Have you tried using Magnitude? You could check the distance from that item and other players and if its over a certain “max distance” then “despawn” it.

I’m confused
Can you explain more?

but it will despawn if a player leaves it

it you are in a area where items spawn and if a player was in that area too so if you leave it then all the items will despawn