So, i'm trying to make a building system. I want models with multiple parts to move together .
But my outcome ends up with one part in the correct position(although slightly clipped into the ground).
SCREENSHOTS
SCRIPT
-- May add a remove event for server side soon.
local test = game:GetService("ReplicatedStorage").Buildings.Test -- My Building
local tool = script.Parent -- Get the Tools
local db = false -- Debounce
local mouse = game:GetService("Players").LocalPlayer:GetMouse()
tool.Activated:Connect(function()
if db == false then
db = true
local building = test:Clone() -- Clone it
building.Parent = workspace
local position = mouse.Hit.p -- Calculate the position
building.PrimaryPart.Position = position -- Using PrimaryPart, because i thought it would work with multiple parts
wait(1)
db = false
end
end)
(fyi im not a good scripter at this kind of stuff, ok?)

4 comments
You use MoveTo to move a model to a certain position however, MoveTo moves the object up on the Y axis if there is anything in the way of the model you are moving
If you want it to not account for objects in the way, you can use SetPrimaryPartCFrame, and provide a CFrame value as opposed to a Vector3
I'll try using "MoveTo"
"MoveTo" works, yay!