PivotTo/moving models help

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? :slight_smile:

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

1 Like

Did you parent the model to workspace?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.