Code
local Room = game:GetService('Workspace'):WaitForChild('Room1')
local Magnitude = Room.PartB.Size.Magnitude
local NumberOfRooms = 32
local Rotation = 11.25
for i=1,NumberOfRooms do
local Clone = workspace:FindFirstChild('Room'..i):Clone()
if Clone:IsA('Model') then
if Clone.PrimaryPart==nil then
Clone.PrimaryPart=Clone:FindFirstChild('Primary')
Clone:SetPrimaryPartCFrame(Clone.PrimaryPart.CFrame*CFrame.Angles(0, math.rad(Rotation), 0))
Clone.Name='Room'..i+1
task.wait()
end
end
end
The code is rather simple and was working earlier; but now the code has stopped working. Making it arduous to figure out what the problem is.