Roblox Script create a domino like game

• 1 min read

Here the code to create elements for a domino effect.

Watch the preview.

Put a Part in the ServerStorage and name it Wall, then put in the main script this code:

for count = 0, 30 do
	local p = game.ServerStorage.Wall:Clone()
	p.Parent = game.Workspace
	
	local z = 7 * count * -1 - 20
	local h = 20
	
	p.Position = Vector3.new(0, h/2, z)
	p.Size = Vector3.new(5, h, 1)
	
end

Have fun!