--cambrick = script.Parent.Parent.CamBrick



function Seated(theSeated)
	player = game.Players:playerFromCharacter(theSeated.Part1.Parent) 
	if player ~= nil then
		thing2 = script.Parent.Turret1211:clone()
		thing2.Parent = player.Backpack
		thing2.Vehicle.Value = script.Parent.Parent
	end
end


function UNSeated(theSeated)
	player = game.Players:playerFromCharacter(theSeated.Part1.Parent) 
	if player ~= nil then
		if player.Backpack:findFirstChild("Turret1211") ~= nil then
			player.Backpack:findFirstChild("Turret1211").Active = false
			player.Backpack:findFirstChild("Turret1211"):remove()
		end
	end
end

script.Parent.ChildAdded:connect(Seated)
script.Parent.ChildRemoved:connect(UNSeated)
