Hi all,
I'm having a go at making my own little placement system but I've instantly run into a problem. When I move the model the PrimaryPart (an invisible bounding box) teleports to the correct place but the rest of the model is literally 1000 studs above where it should be. What is causing this to happen?
local mouse = game:GetService("Players").LocalPlayer:GetMouse()
local item = game:GetService("ReplicatedStorage").wardrobe:Clone()
local primary = item.GridPart
local plot = game:GetService("Workspace").Baseplate
local function move()
local target, side = mouse.Target, mouse.TargetSurface
local position = CFrame.new(mouse.Hit.X, primary.Size.Y/2, mouse.Hit.Z)
if target == plot then
print(target.Name)
item.Parent = game.Workspace
item:SetPrimaryPartCFrame(position)
wait()
else print("nothing")
item.Parent = game:GetService("ReplicatedStorage")
end
end
while true do wait(1)
move()
end

3 comments
https://scriptinghelpers.org/blog/creating-a-furniture-placement-system
My problem is with the model itself not actually following the primarypart not creating a placement system. I want to try to figure that out rather than following the guide
look at line 9 at primary.Size.Y/2. try playing around with that, that value determines whether it goes up or down.