while wait() do
	repeat
		local houses = game.Workspace.Houses
		houses:SetPrimaryPartCFrame(houses.PrimaryPart.CFrame + houses.PrimaryPart.CFrame.LookVector * -10)
		print("Moving houses!")
		wait()		
	until wait(100)
	
	for i=0,1,0.01 do
		local houses = game.Workspace.Houses
		local cf = houses.PrimaryPart.CFrame
		houses:SetPrimaryPartCFrame(cf * CFrame.Angles(0,0,math.rad(45)))
		wait()
	end
end

2 comments

0

try putting then after until wait(100)

0

You can't put a then after until.