Mesh in Character won't rotate or change positions

So I’ve been trying to fix this for about 30 minutes but it just won’t work. So what i want to do is when you touch a part it will add a police car mesh to your character.

Example:

But with the script if have now i got this:
image

as you can see the orientation and position aren’t working. I’ve tried changing orientation and position but just nothing is happening. Am i doing something wrong if so what is it and is there a better way to do this?

My script:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild(“Humanoid”) then
if not hit.Parent:FindFirstChild(“PoliceCar”) then
local car = game.ReplicatedStorage.Content.Vechiles.PoliceCar:Clone()
local weld = Instance.new(“Weld”)
car.Parent = hit.Parent
car.Position = hit.Parent.HumanoidRootPart.Position - Vector3.new(0,3,0)
car.Orientation = hit.Parent.HumanoidRootPart.Orientation
weld.Parent = car
weld.Part0 = car
weld.Part1 = hit.Parent.HumanoidRootPart
end
end
end)

1 Like

Set the CFrame of the car BEFORE welding it.

In addition, don’t do car.Position and car.Orientation, because it can cause issues in the future. Do car.CFrame = CFrameHere * CFrame.Angles(x,y,z)