As part of my random room generator script, I am trying to move a clone of a room.
local rooms = game.Workspace.MapParts:GetChildren()
local startingroomnum = math.random(1, #rooms)
local startingroom = rooms[startingroomnum]
local startpart = game.Workspace.RoomsStart
print(startingroom)
print("This is starting room ^^^")
local startcopy = startingroom:Clone()
startcopy.Name = "startroom"
startcopy.PrimaryPart = startcopy.floor
startcopy:PivotTo(startpart:GetPivot())
At ‘startpart’ there is no model when I click run. Anyone have a solution? Thanks?
Edit: I’m not sure if moving the model is the problem or cloning the model in the first place is the problem.
Edit 2: Ngl I feel kinda dumb now