#im trying to make a tower defense game but only one zombiw spawns

1 messages · Page 1 of 1 (latest)

true shuttle
#

for i=1,quantity do task.wait(0.5) end hm yep can't tell why it's not spawning more than one

fleet torrent
#

idk too

true shuttle
#

it's impossible to be sure what this cryptic arrangement of letters and numbers is trying to do but, and this is just a guess, it probably has something to do with waiting instead of spawning things.

fleet torrent
#

hmm ima turn it up from 0.5 to 1

valid flareBOT
#

studio** You are now Level 3! **studio

true shuttle
fleet torrent
#

it doesn't.....

true shuttle
#

oh, maybe if you make it wait longer it'll do something different

fleet torrent
#

maybe it has something to do whit
local newMob = mobExists:Clone()
newMob.HumanoidRootPart.CFrame = map.Start.CFrame
newMob.Parent = workspace

    coroutine.wrap(mob.Move)(newMob, map)
else
    warn("Mob wasn't found", name)
end
true shuttle
fleet torrent
#

idk too

true shuttle
#

if i were to guess, maybe you wanted to do that multiple times instead of waiting for a miracle multiple times?

#

code is so confusing, it always does exactly what you tell it to do, why can't it simply read minds agony

#

this is 2025 after all, we have ai now, but we can't make mind reading code? we really are still in the dark ages

fleet torrent
true shuttle
fleet torrent
#

i dint use ai tbh

true shuttle
#

particularly the page about loops

fleet torrent
#

welp didnt use ai but why not

true shuttle
#

or i suppose you can keep blindly banging your head against a wall and randomly changing things and maybe it will eventually do what you want in your lifetime

#

idk, i'm of the opinion that learning how to code is the best way to know how to write code ;o

#

but i could very easily be wrong about that. learning things is for nerds

fleet torrent
#

first of all i made it on my own second of all please stop bullying me

true shuttle
#

i'm saying copying from tutorials isn't writing it yourself, you learn very little to nothing from it

#

that's why you're stuck right now ;o

#

all u have to do is move the npc spawn code, the thing that clones, into the loop

#

obviously so it repeats the spawn code however many times you wanted

fleet torrent
#

......................

#

it seam you arnt helping me

true shuttle
#

no sarcasm that time that's how you do it ;p

true shuttle
#

all you're doing in that loop is waiting, you're not spawning anything. you probably wanted to spawn things in that loop but instead you only spawn it once

true shuttle