How do i continue the for i=1,6 while moving on to the next jumpart? the script is suppose to raise each block that is named jumpart in workspace and bring them down its going to do that 6 times continuously while raising another block what it does right now is it waits for 1 block to finish its 6th turn then it goes to the next one. Thanks for taking your time to read this post.
enabled=true
children=game.Workspace:GetChildren()
function onClicked()
if enabled==true then
enabled=false
script.Parent.BrickColor=BrickColor.new("Really red")
for i,jumpart in pairs(children)do
if jumpart.Name=="jumpart" then
for i=1,6 do
for i=4,13,0.3 do
jumpart.CFrame=CFrame.new(jumpart.Position.x,jumpart.Position.y+1.1,jumpart.Position.z)
wait(0.1)
end
wait(1)
for i=13,4,-0.3 do
jumpart.CFrame=CFrame.new(jumpart.Position.x,jumpart.Position.y-1.1,jumpart.Position.z)
wait(0.1)
end
end
end
if i==34 then
wait(1)
script.Parent.BrickColor=BrickColor.new("Lime green")
enabled=true
end
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

2 comments
I respect why you asked this again, though I did update my answer on your previous version: https://scriptinghelpers.org/questions/16298/how-to-implement-table-into-a-loop
this is a different matter