the first part of the post is linked below it will explain the purpose of the script though i added somethings in the script below that makes the block go down but it raises and descends the blocks one by one i tried adding a table but i was in the dark when it came to actually implementing it.
https://scriptinghelpers.org/questions/16263/rising-block-script-not-working
The script:
jumparts={}
Debounce=false
children=game.Workspace:GetChildren()
function onClicked()
script.Parent.BrickColor=BrickColor.new("Really red")
for i,v in pairs(children)do
if v.Name=="jumpart"then
table.insert(jumparts,i,v.Name)
end
end
if not Debounce then
Debounce=true
for i,v in pairs(children)do
if v.Name=="jumpart" then
for i=4,13,0.3 do
v.Size=Vector3.new(v.Size.x,i,v.Size.z)
wait(0.1)
end
wait(1)
for i=13,4,-0.3 do
v.Size=Vector3.new(v.Size.x,i,v.Size.z)
v.Position=Vector3.new(v.Position.x,v.Position.y-4.4,v.Position.z)
wait(0.1)
end
end
end
script.Parent.BrickColor=BrickColor.new("Lime green")
Debounce=false
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

3 comments
I don't understand your question. You're already using tables in a loop. What is it the script is or isn't doing?
no i used a generic loop to get all the parts but idk how to actually raise all the blocks in that loop
please help