Im trying to move a map to a specific point
The map is in a folder and other multiple folders that just store stuff
I dont want to change it into a model (tried to do it but all parts inside the model would just disappear after changing the position for some reason ?)
There is MapCenter part inside the map’s folder and [MapPoint Part] inside workspace
Done many attempts to do it but just ended up with all parts moving to the MapPoint position instead of moving the map and keeping it’s normal shape
Might not be really clear but tried my best explaining it
You can keep the Map folder but make all of the descendants of it into model. After this, you can set the primary part of the model to the map center you were talking about. Next, use the PivotTo method on the model.
There may be other ways/better ways to do this but, I’m just going to answer the question you asked.
local folder = game.Workspace.YourFolder
local newPosition = Vector3.new(x, y, z)
for _, part in ipairs(folder:GetChildren()) do
if part:IsA("BasePart") then --probably going to need this
part.Position = part.Position + newPosition
end
end