Help with Tracking System

I am making an upgrade in my game so that the closest player to you is tracked. I have the waypoint set up but I need to find out how to know who is the closest player. Help would be appreciated!!!

Okay so there might be a previous topic about this so you could try to search it up. (this is my lazy response) I will research now… okay got it up and working,


make sure to also use channels (this will be needed) next have your button give a channel when pressed then have the waypoint activate(you have to go to all options for this one) on that channel and there you go (test it! :slightly_smiling_face:)

Thank you @ReDGh0st for the help!

@ReDGh0st this doesn’t work, i need it to find the CLOSEST player, not only ONE AT ALL TIMES

thank you for the help though

wait could you section off your map in different zones, (first try!!! woop woop!!!) so have multiple zones all linked to one waypoint via channels


way point here

waypoint not here, so how this works is that when the player leaves the zone it will stop tracking (more screenshots!)

that is for the zone

and this is for the waypoint (it might not be very seamless but it is the best that I can do)

1 Like

Aaaaaargh
To find the closest player, you would need to first get their distances in properties

Then you find the one that is the least
Relay-all players-trigger block code-if distance is smaller than min(default 100000), min is replaced by it, and put triggering player id in a global property, then
Relay-all players- trigger block code-if player id equals stored id-waypoint- track player on
@ReDGh0st i dont think thats what they are looking for

2 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.