Need help with fixing vehicle clone

Basically, I’ve created a dealership GUI that, when clicked, is supposed to clone a vehicle from the Workspace, move it to a certain CFrame and then allow the player to enter it and drive the vehicle.

Now, upon cloning the vehicle, it teleports to the CFrame and then teleports into the original car that it’s supposed to be a clone of. Once it does that, all of the parts break apart and the suspension gets stretched out. The car is using A-Chassis and the button that’s supposed to clone and teleport the car is located in StarterGui, along with the LocalScript i’m using.

Here’s the script:

script.Parent.MouseButton1Click:Connect(function()
	local plr = game.Players.LocalPlayer
	local plrname = plr.Name
	local Williamson = game.Workspace:WaitForChild("Williamson")
	wait(1)
	local WilliamsonCopy = Williamson:Clone()
	WilliamsonCopy.Name = string.format(plrname .. "Car")
	wait(1)
	WilliamsonCopy.Parent = game.Workspace
	WilliamsonCopy.Body.Paint.CFrame = game.Workspace.DealershipLanding.CFrame
end)

And here’s a picture of what happens when the button is clicked and the car spawns:

EDIT: I’m tempted to change the Chassis, but I dont know of any other alternatives…
EDIT2:The glowing part is the CFrame it’s supposed to teleport to.

Looks like you put it in the workspace before you moved it, so the clone is being placed inside the source model.

Also, why are you moving WilliamsonCopy.Body.Paint and not the whole model?

3 Likes

I’m moving WilliamsonCopy.Body.Paint because when I try to change the CFrame of the whole Clone, it doesn’t work, even when I move it before setting it’s Parent to the workspace…

EDIT: Also, I think the inital welds created by A-Chassis should allow for one part to be moved, as the other’s follow. I rarely work with welds though, so this is just speculation…

Couldn’t you just set the PrimaryPart’s CFrame to align it with the DealershipLanding CFrame? Also since this is on the local side & if you have certain scripts that are Server-Sided, this may not work across replication

script.Parent.MouseButton1Click:Connect(function()
	local plr = game.Players.LocalPlayer
	local plrname = plr.Name
	local Williamson = game.Workspace:WaitForChild("Williamson")
	wait(1)
	local WilliamsonCopy = Williamson:Clone()
	WilliamsonCopy.Name = string.format(plrname .. "Car")
	wait(1)
	WilliamsonCopy:SetPrimaryPartCFrame(game.Workspace.DealershipLanding.CFrame)
	WilliamsonCopy.Parent = workspace
end)
2 Likes

Actually, I just re-read what you said and put it into action, I also altered the A-Chassis scripts and now it works, thanks!