Help with rotating wall system

Hi I’m Nathanielishoot and I am trying to make a basic wall rotation system but for some reason it’s not working. For context I have a folder called “Walls” and the children inside of it are the walls called “Wall”. When I test the script nothing happens and no errors go into the output. Someone please help.

local walls = game.Workspace.Walls:GetChildren()

local orientation = CFrame.Angles(0, math.rad(90), 0) -- Rotate 90 degrees around the y-axis

for i, Wall in ipairs(walls) do
	for j, part in ipairs(Wall:GetChildren()) do
		part.CFrame = orientation * part.CFrame
	end
end


while true do
	for i, Wall in ipairs(walls) do
		for j, part in ipairs(Wall:GetChildren()) do
			part.CFrame = orientation * part.CFrame
			print(part.CFrame)
		end
	end
	wait(5) 
end

replace that “*” with “+” and it might work.

j?

Character limit

Bad
Oofster

Imagine
L + Ratio

J known as I is the count number for in pairs, so technically its used to counting what number the pair is.

It’s still not working :frowning: . I don’t understand why because I’m still not getting any errors for my code.