This error is driving me CRAZY!!! I don't know what to do anymore to fix it!! This is the whole game script I have:
status = game.ServerScriptService.Status
local type = {}
leaderboard = nil
local w = game.Workspace:getChildren()
for i=1,#w do
if w[i].Name == "leaderboard" and w[i]:findFirstChild("running") ~= nil and w[i]:findFirstChild("points") ~= nil then
leaderboard = w[i]
end
end
for i,game in pairs (game.ServerStorage:FindFirstChild("enemies"):GetChildren()) do
table.insert(type,#type+1,type.Name)
end
while true do
print (#type)
typeName = type[math.random(1, #type)]
typeName = game.ServerStorage.Maps:FindFirstChild(typeName)
typeClone = typeName:Clone()
game.Workspace.Lobby:Play()
for i = 60, 1, -1 do
status.Value = "Intermission: "..i
wait(1)
end
status.Value = "Disaster: "..typeClone.Name
wait(3)
game.Workspace.running.Value = true
typeClone.Parent = game.Workspace.Parent
typeClone:MakeJoints()
for i = 150, 1, -1 do
status.Value = "Time until round ends: "..i
wait(1)
end
typeClone:remove()
game.Workspace.running.Value = false
game.Workspace.VICTORY:Play()
status.Value = "Congrats to whoever survived!"
wait(3)
end

1 comment
Please have a better desc.