I've probably not have been specifying enough on my other posts.
I've been trying to fix the code below
I think that the
game.Players[v].Character.Humanoid:UnequipTools()
game.Players[v].Backpack:ClearAllChildren()
is wrong in the script, but I might be wrong.
below The part of the script that the code is in (In case you need it)
if #_G.gameplayers == 1 then
for i, v in pairs (_G.gameplayers) do
if v ~= nil then
status.Value = v..' Is The WINNER!'
print 'Game Over!'
game.Players[v].leaderstats.Wins.Value = game.Players[v].leaderstats.Wins.Value + 1
game.Players[v].leaderstats.Rating.Value = game.Players[v].leaderstats.Rating.Value + 4
game.Players[v].Character.Humanoid:UnequipTools()
game.Players[v].Backpack:ClearAllChildren()
print 'Gave winning player point!'
break
elseif #_G.gameplayers == 0 then
status.value = 'No one won :('
end
end
break
else
status.Value = i..' seconds left!'
end
end
Thank You!
