local spiders = script.Parent:WaitForChild("Spiders"):GetChildren()
for i, v in pairs(spiders) do
if v:IsA("MeshPart") then
for i= 1, 80 do
spiders.CFrame = spiders.CFrame * CFrame.new(0,0,-0.3)
wait()
end
end
end
Workspace.Model.Script:6: invalid argument #1 (CFrame expected, got nil)
I want a script that will make multiple spiders run forward, but I don't want to make variables for 20+ spiders.

8 comments
edited and put in your script.
they move once at a time, I need them all of them to move at the same time
you could always try to make it one part, let me think i'll see what i can do though.
@14dark14 i have attempted to make a script, i haven't tested it, make a primary part centered with the spiders, name it PrimaryPart, Anchor it and put this in the model (second choice edit)
wont work if I made them into 1 part because the spiders run different directions, If you wont be able to come up something I will have to make separate script for each spider
i found a way, check the edit, put that script in every spider.
yeah I know, thats what I didnt want to do, I know I could do that, but I want to keep stuff optimized.
you could do one script that goes for all spiders, for example, local spider1 = script.Parent["Spider1"] in the model and then keep doing that with for i = 1,80 for each or one for i = 1,80 with all cframes in