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 v.Character.Head:Clone().Parent = game.Workspace wait() end end end Winner()
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]
You're defining a whole lot of functions, but never calling them. Try at the end just adding: copy ()