I am trying to make it so all of the floors move out of ReplicatedStorage, into the Workspace, and moves it's position. When I run this code, everything works with no errors, except that the position doesn't change. The floors are models in a folder in ReplicatedStorage.
local floor1pos = Vector3.new(1.6, 153.3, -34.4)
local floor2pos = Vector3.new(1.6, 125.3, -34.4)
function NewTower()
local Floor1 = floors[math.random(1, #floors)]:Clone()
Floor1.PrimaryPart = tower.Platforms.Platform1
Floor1:MoveTo(floor1pos)
Floor1.Parent = workspace
local Floor2 = floors[math.random(1, #floors)]:Clone()
Floor2.PrimaryPart = tower.Platforms.Platform2
Floor2:MoveTo(floor2pos)
Floor2.Parent = workspace
end
NewTower()
I don't get any errors. It moves the floors to their original position, not the changed one.

4 comments
maybe try doing Floor1.PrimaryPart:MoveTo()? im too lazy to go into studio so its just a suggestion
That doesn't work because the MoveTo() function can only be used on models.
do some debugging. put a print() line in between every piece of code and have each one print something different, this is a working alternative way of finding errors in script if the script doesnt output its own errors. If one of the print() lines dont print then the code after it wont run depending on the way your code is
I tried that and it printed everything. But the model, Floor1, doesn't move positions.