This is supposed to make it so that when i say !outscore (number here) the players who reach that number of wipeouts must be put back into team white and his tools in the starterpack must be removed.
local isAdmin = {["Incrility"] = true}
function findPlayer(name)
for _, player in ipairs(game.Players:GetPlayers()) do
if player.Name:lower() == name:lower() then
return player
end
end
end
function onChatted(message)
if message:sub(1, 10) == "!outscore " and isAdmin[player.Name] then
local block = (message:sub(11))
end
end
function onHumanoidDied(humanoid, player)
local stats = player:findFirstChild("leaderstats")
if stats ~= nil then
local deaths = stats:findFirstChild("Wipeouts")
deaths.Value = deaths.Value + 1
if deaths.Value > block then
player.TeamColor=BrickColor.new("White")
end
if deaths.Value > block then
a = game.Players:GetChildren()
pack=game.StarterPack:GetChildren()
if #pack>0 then
for i=1,#pack do
pack[i]:destroy()
end
end
end
Why is this not working Please do help.

1 comment
On second though i think that the last part which activates functins is messing with other activations... IF YOU GUYS HAVE TIME EITHER COMMENT HERE OR PM ME ON ROBOLOX so i can sedn you whole script