Well, you’re making a loop. Note that roblox will run your script in 1 thread. That is to say, if you create a loop, it’ll do the thing once and then when it’s done it’ll do the next one etc. I assume you want it to create a bug, and start flying it around indefinitely, and then create new bugs too independently of that one? I suggest using
spawn(function()
-- Bug spawning code
-- Bug moving loop
end)
This’ll create a separate thread, so it’ll run independently from the other bugs.