-- / CarController.lua / --


BodyPostion.Position = CarModel.Position; 
BodyGyro.CFrame = CarModel.CFrame;

Seat:GetPropertyChangedSignal("Occupant"):Connect(function(t)
	if Seat.Occupant and not currentOccupant then
		local player = Players:GetPlayerFromCharacter(Seat.Occupant.Parent);
		if player then
			currentOccupant = player;
			CarModel:SetNetworkOwner(player);
			currentClient = Client:Clone();
			currentClient.Parent = player.PlayerGui;
		end
	elseif not Seat.Occupant and currentOccupant then
		currentClient:Destroy();
		currentClient = nil;
		currentOccupant = nil;
		CarModel:SetNetworkOwner(nil);
	end
end)
