I am angry, well more annoyed. I digress, so I am making a zombie spawn script for my game, and it just says an error:
Script timeout: exhausted allowed execution time
I am confused, maybe its just a brain fart or I am bad at scripting, probably latter. Anyways, heres the script:
--variables--
local locONE = script.Parent.spawnlocations.locONE
local locTWO = script.Parent.spawnlocations.locTWO
local locTHREE = script.Parent.spawnlocations.locTHREE
local wave = workspace.wave.Value
local numspawn = workspace.numtospawn.Value
local normzom = game.ServerStorage.Zombie.Zombie
local boss1 = game.ServerStorage.Zombie.BossZombie
local boss2 = game.ServerStorage.Zombie.BossZombie2
--code--
while true do
wait(4)
local clone = normzom:Clone()
clone.Parent = workspace.workzombie
clone:moveTo(locONE.Position)
end
It happens with the:
clone:moveTo(locONE.Position)
near the bottom of the script. I have a wait(4) near the middle. Thanks for helping!
