For some reason, it won't run my wallOfDoom() function. It says "21:24:10.453 - ServerScriptService.GameModes:41: attempt to call global 'wallOfDoomDisaster' (a nil value)"
I'm frustrated that it won't run it...
local function meteorsDisaster()
local explosionPart = script.Prefabs.ExplosionPart
local gameRoundLength = 10
local gameInterMissonLength = 10
local roundStartTime
local function wallOfDoomDisaster()
local wallOfDoom = script.Prefabs.WallOfDoom
wallOfDoom.Parent = game.Workspace
end
local function initialize()
roundStartTime = tick()
end
local function createExplosionPartCopy()
local explosionPartCopy = explosionPart:Clone()
explosionPartCopy.Parent = game.Workspace
local xPosition = math.random(-64, 79)
local zPosition = math.random(-45, 90)
explosionPartCopy.Position = Vector3.new(xPosition, 100, zPosition)
end
while true do
initialize()
repeat
local currentTime = tick
local timeSinceGameStarted = currentTime - roundStartTime
createExplosionPartCopy()
wait(.5)
until timeSinceGameStarted > gameRoundLength
wait(gameInterMissonLength)
wallOfDoomDisaster()
end
end
wallOfDoomDisaster()

2 comments
Plus he never calls meteorsDisaster() so he can't expect the function to execute
He did. Also, he can still use recursion.