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.
Firstly, Click your Model on the Explorer and on the Properties PrimaryPart, then Click one of ur Floors on the Explorer.
To Move them, just do this on your Script
Floor1:SetPrimaryPartCFrame(CFrame.New(?, ?, ?)