#How will I script to kill a player with lowest points?

11 messages · Page 1 of 1 (latest)

gilded osprey
#

you iterate about the players make a local and if someone have less points than the anterior then its the player

#

would be


local PlayerToKill = nil
local HugePoints = math.huge

for _, player in Players:GetChildren() do

    if player.leaderstats.Points.Value < HugePoints then

        PlayerToKill = player
        HugePoints = player.leaderstats.Points.Value

    end

end
 
#

and then u have the local of the player to kill

#

👍

#

@snow oxide -- just for advise ping --

snow oxide
#

But I'll try to adjust it

gilded osprey
#

If it can be obviusly 🙏

snow oxide