So I've finally figured out tables (yay!!). I wanted to specify a certain player from the players service based on these certain conditions:
- the player is ~= nil
- the players position/CFrame is CLOSEST to a certain part than all the other players
- the players health is ~=0
Ive converted the the list of players into a table. I'm iterating through ll the values, but i'm stumped on how to compare one of the properties of a table value to the rest of the values. Here's what I got so far.
wait(1)
players = game.Players:GetChildren()
for i,v in pairs(players) do
if v.Character.Torso.CFrame-BLANK then
--do stuff
end
end
I want BLANK to stand for all the other players positions. I'm trying to specify the player closest to a part.
HALP!!!!

4 comments
WOAH!!! This is alot more compicated than I expected. I dont wanna pester you to make a bigger explanation.... I guess whatever you can do to helps.
I could do it..
Yeah. Do it :~|
Wow, now I get it. THX!!!