this is the script
a = true
b = {}
c = {}
highest = 0
while a == true do
wait (1)
for _, Player in pairs(game.Players:GetPlayers()) do
if Player.DataReady == true then
PlayerName = Player.Name
local survived=Player:LoadNumber("SurvivedTotal") or 0
table.insert(b,PlayerName)
table.insert(c,tostring(survived))
d = 0
for i,v in pairs(c)do
d = d+1
wait()
if v > highest then
highest = v
end
end
script.parent.Text = (b[d]..": "..c[d])
print (c[d])
print (d)
d = 0
script.parent.Text = (PlayerName..": "..survived)
end
d = 0
end
b = {}
c = {}
end
currently it doesent seem to do anything can anyone help?

1 comment
You don't explain what this is suppost to do at all.