How do I make this code more efficient

You can write your topic however you want, but you need to answer these questions:
Im trying to make this code more efficient but I dont know how.

for i = 10,0,-1 do
	script.Parent.Text = i
	wait(1)
end
script.Parent.Text = "The border has opened!!"
game.Workspace.MiniGameBorder.CanCollide = false
game.Workspace.MiniGameBorder.Transparency = 1
game.Workspace.MiniGameBorder1.CanCollide = false
game.Workspace.MiniGameBorder1.Transparency = 1
game.Workspace.MiniGameBorder2.CanCollide = false
game.Workspace.MiniGameBorder2.Transparency = 1

I tried to make it into a folder and change the property of the children’s of the folder but it doesnt seem to work.

just add them to a table and loop through it. Like this:

for i = 10,0,-1 do
	script.Parent.Text = i
	wait(1)
end
script.Parent.Text = "The border has opened!!"
local borders = {game.Workspace.MiniGameBorder, game.Workspace.MiniGameBorder1, game.Workspace.MiniGameBorder2}

for i,v in pairs(borders) do
	v.CanCollide = false
	v.Transparency = 1
end

When you make a folder and put all the border parts inside, you can do something like this:

for _,Border in pairs(game.Workspace.BorderFolder:GetChildren()) do
	Border.CanCollide = false
	Border.Transparency = 1
end

If you don’t want to make folders and move parts around, you can do this:

for i,v in pairs(game.Workspace:GetChildren()) do
	if string.find(v.Name,"MiniGameBorder") ~= nil then
		v.CanCollide = false
		v.Transparency = 1
	end
end

For starters you can start the script with

local g = game.Workspace.

before the

for i = 10,0,-1 do

if you want the coding to take less time if you make more updates to it
Second
you can rearrange the script like

game.Workspace.MinigameBorder.CanCollide = false
game.Workspace.MinigameBorder1.CanCollide = false
game.Workspace.MinigameBorder2.CanCollide = false
game.Workspace.MinigameBorder.Transparency = 1
game.Workspace.MinigameBorder1.Transparency = 1
game.Workspace.MinigameBorder2.Transparency = 1

To have it more organized when you add more in the future.

for i = 10, 0, -1 do
	script.Parent.Text = i
	task.wait(1)
end

local borders = {workspace.MiniGameBorder, workspace.MiniGameBorder1, workspace.MiniGameBorder2}

for _, border in ipairs(borders) do
	border.CanCollide = false
	border.Transparency = 1
end

script.Parent.Text = "The border has opened!!"

Like this.