0

# I made this, but it wont print out any errors, and the output dose not give any errors?

numtble = {}

function Check()
repeat wait() until game.Players.NumPlayers >= 2
for i,v in pairs(game.Players:GetPlayers()) do
table.insert(numtble,v.PlayerGui.Points.Posy.Numbers.Value)
wait()
print("Awesome2")
wait()
end
end

function Check2()
for i=1, #numtble do
if i > 2 then
if numtble[i] < numtble[i] - i then
dum = numtble[i] - 1
table.remove(numtble,dum)
elseif numtble[i] < numtble[i] - i then
table.remove(numtble,numtble[i])
wait()
print("Awesome")
wait()
end
end
end
end

function Winner()
Check()
Check2()
for i,v in pairs(game.Players:GetPlayers()) do
if v.PlayerGui:findFirstChild("Points"):findFirstChild("Posy"):findFirstChild("Numbers").Value == numtble[1] then

wait()
end
end
end

Winner()

0
Alright, this is supposed to go get a value in a gui in all players, and set it in a table, then go through the table and take out every number except the highest number, and then clone the players head with the highest number, righ now its either not removing the numbers from the table or my logic is wrong, the updated version of the code has been edited on this please help RootDirectory 10 — 7y

0

Are the functions called in the script elsewhere? Assuming they are, I am not sure if

numtble[i] > numtble[i] - i


is the correct way to write that. Maybe

numtble[i] > numtble[i-1]

0
No, should they be? RootDirectory 10 — 7y
1
In order for copy to run you would need to put copy() underneath that final end crackabottle123 110 — 7y
You're defining a whole lot of functions, but never calling them. Try at the end just adding: copy ()