Hi, I am having trouble keeping my model on the car. I have to have a un-anchor script in my car for it to be able to move, when it un-anchors the camera, it just falls off while everything else is still attached together but unanchored so it can move.

Any help?

Picture: http://gyazo.com/bf8bbffad0df40903d0694c076115663

Camera models name: "SpeedOCamera"

Unanchor script:

wait(5)
function unanchor (m)
	for _,i in pairs (m:GetChildren()) do
		if i:IsA("BasePart") then
			i:MakeJoints()
			i.Anchored = false
		else
			unanchor(i)
		end
	end
end
unanchor(script.Parent)

1 comment

0

You're looking to weld the parts together. You can use SurfaceTypes, contraints or the common method of writing a weld script. Search roblox welds for the wiki page, which is in my opinion one of the easy ones to understand.