The Code is:
while true do
local players = game.Players:GetChildren()
local giant = players[math.random(1, #players)]
wait()
for i = 1,20 do
local player = game.Players:GetChildren()
status.Value = "Intermision "..20-i
wait(1)
end
for i = 1,#players do
if players[i].Character ~= nil then
local spawnLocation = math.random(1,#workspace.Teleports:GetChildren())
local giantspawnLocation = math.random(1,#workspace.GiantTeleport:GetChildren())
players[i].Character:MoveTo(workspace.Teleports:GetChildren()[spawnLocation].Position)
giant.Character:MoveTo(workspace.GiantTeleport:GetChildren()[giantspawnLocation].Position)
PlayerSize(giant)
end
end
for s = 1,20 do
status.Value = "Game "..20-s
wait(1)
for l = 1,#players do
giant.Character.HumanoidRootPart.Touched:Connect(function(player)
local humanoid = players[l].Character.Humanoid
if humanoid.Parent.Name ~= giant.Name then
humanoid:TakeDamage(100)
end
end)
end
end
print(giant)
wait(1)
for p = 1,#players do
giant.Character.Humanoid:TakeDamage(1000)
players[p].Character.Humanoid.Health = 0
end
end

1 comment
is that all ur code is? if the variable players is 0, this error should happen. https://scriptinghelpers.org/lua#A4JwlgdgLgFAtgQygCwHQgRAJgezjARgBoAGASjKA